6️⃣7️⃣ Generating codes is easy and simple.
yarn add numcode
# or
npm install -s numcode
For ES6 or ESNext
import { numcode } from 'numcode';
For CommonJS
const { numcode } = require('numcode');
console.log(numcode());
Output should be '1998'
Returns string
unique id with length option (length from 4 to 6).
Example
numcode(6);
Output should be '122856'
Thanks goes to these wonderful people (emoji key):
Cuong Duy Nguyen 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © 103cuong