Releases: cuongndc9/diana
improve performance
diana
πΈπ» Easy way to create π unique ids.
π§° installation
yarn add diana-jsπ§π»βπ» usage
import { diana } from 'diana-js';
console.log(diana());π³ API
diana(length:? number): string // default length is 16π€ contributors
Thanks goes to these wonderful people (emoji key):
Cuong Duy Nguyen π» π |
This project follows the all-contributors specification. Contributions of any kind welcome!
π license
MIT Β© Cuong Tran
Only thinid β€οΈ
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):
Cuong Duy Nguyen π» π |
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT Β© cuongw
Support number code
thinid
ππ¦ Easy way to create π unique id and number code.
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 { uid, code } from 'thinid';For CommonJS
const { uid, code } = require('thinid');console.log(uid());
console.log(code());Output should be '13b6-351b_fb04$14b8#8983'
Output should be '1998'API
uid(length)
Returns string unique id with length option.
Example
thinid(9);Output should be '9jw6-745b'code(length)
Returns string unique id with length option (length from 4 to 6).
Example
code(6);Output should be '122856'Contributors
Thanks goes to these wonderful people (emoji key):
Cuong Duy Nguyen π» π |
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT Β© cuongw
thinid v0.4.1
Support CommonJS
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'thinid v0.3
Support length options.
import thinid from 'thinid';
console.log(thinid(9));Output should be '13b6-351b'π thinid v0.2
ππ¦ Create π unique ID like eating π₯ pancakes.
Installation
yarn add thinid
# or
npm install -s thinidUsage
import thinid from 'thinid';
console.log(thinid());Output should be '171a7-0688a_69261'