czero1995 / util-snippets

🎉 Helpful JavaScript Snippets NPM

Home Page:http://snippets.fancystore.cn/en/guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English | 简体中文

Introduce

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

Link

NPM: https://www.npmjs.com/package/util-snippets

Docs Link: http://snippets.fancystore.cn/en/guide/

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

About

🎉 Helpful JavaScript Snippets NPM

http://snippets.fancystore.cn/en/guide


Languages

Language:JavaScript 54.1%Language:TypeScript 45.9%