
## Introduce

* Integrate multiple commonly used JavaScript snippets for increased productivity.
* Introduce code snippets as NPM to improve code maintainability.

## Link
Github:  [https://github.com/czero1995/util-snippets](https://github.com/czero1995/util-snippets)

NPM:  [https://www.npmjs.com/package/util-snippets](https://www.npmjs.com/package/util-snippets)

## Technology

* Base <font color=red>TypeScript</font>。
* Use <font color=red>Jest</font> test code。
* Use <font color=red>VuePress</font> code docs




## Install NPM Package
    npm install util-snippets

## Use Package
    import { xxx } from 'util-snippets'

## Local Test
    git clone https://github.com/czero1995/util-snippets.git
    cd util-snippets
    npm install 
    npm run tsc:w // The real-time transformation of TypeScript into javascript ot is convenient for debugging
    npm link // The equivalent of npm install util-snippets

    Used directly in other projects  import { xxx } from 'util-snippets'

## Publish NPM Package
    npm login
    publish

## Refer to the article

[127 Helpful JavaScript Snippets You Can Learn in 30 Seconds or Less — Part 1 of 6](https://medium.com/better-programming/127-helpful-javascript-snippets-you-can-learn-in-30-seconds-or-less-part-1-of-6-bc2bc890dfe5)