简体中文 | English
Elegent & utility methods to facilitate common usage in JavaScript!
🤩 This repo was generated from Y-lonelY/npm-template/pure, if you want to try you own npm packages you can start from that!
run npm install ele-utility --save
or yarn add ele-utility
Here's a quick demostration:
import { geuuid } from 'ele-utility'
// generate a uuid
// -> "34523bf2-ce6a-42ec-803f-3e4b2a192a36"
const u = geuuid()
- Module is a namespace. Default export often leads to function/component per file dogma and makes code less maintainable.
- Interop with commonjs is broken in many cases or hard to maintain.
- Show me any good language with default exports. It's historical javascriptism.
✨ See more usages at API Docs
Clone the repo and run npm install
to init the project!
After you have done some work, just run npm run build
to generate the project, and all output will be found at ./npm
Solo with code!