0.5.1 • Published 6 years ago
thinid v0.5.1
thinid
🚀📦 Easy way to create 🆔 unique ids.
ThinId creates lovely unique ids. Easy to use, support both JavaScript and TypeScript.
Installation
yarn add thinid
# or
npm install -s thinidUsage
For ES6 or ESNext
import { thinid } from 'thinid';For CommonJS
const { thinid } = require('thinid');console.log(thinid());Output should be '13b6-351b_fb04$14b8#8983'API
thinid(length)
Returns string unique id with length option.
Example
thinid(9);Output should be '9jw6-745b'Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © 103cuong