# 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
NPM: https://www.npmjs.com/package/util-snippets
# Technology
- Base TypeScript。
- Use Jest test code。
- Use VuePress 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