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 thinid
Usage
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 thinid
Usage
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 thinid
Usage
import thinid from 'thinid';
console.log(thinid());
Output should be '171a7-0688a_69261'