Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

czero1995/util-snippets

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /