Skip to content

Releases: cuongndc9/diana

improve performance

09 Aug 10:07
00741cc
Compare
Choose a tag to compare

diana

๐Ÿ‘ธ๐Ÿป Easy way to create ๐Ÿ†” unique ids.

All Contributors
Build Status
npm
npm
david
Hits-of-Code
GitHub

๐Ÿงฐ 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
Cuong Duy Nguyen

๐Ÿ’ป ๐Ÿ“– โš ๏ธ ๐Ÿ‘€

This project follows the all-contributors specification. Contributions of any kind welcome!

๐Ÿ”– license

MIT ยฉ Cuong Tran

Only thinid โค๏ธ

12 Nov 14:38
ff7647f
Compare
Choose a tag to compare

thinid

๐Ÿš€๐Ÿ“ฆ Easy way to create ๐Ÿ†” unique ids.

All Contributors
Build Status
npm
david
Hits-of-Code
GitHub

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
Cuong Duy Nguyen

๐Ÿ’ป ๐Ÿ“– โš ๏ธ ๐Ÿ‘€

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT ยฉ cuongw

Support number code

03 Nov 13:28
7443402
Compare
Choose a tag to compare

thinid

๐Ÿš€๐Ÿ“ฆ Easy way to create ๐Ÿ†” unique id and number code.

All Contributors
Build Status
npm
david
Hits-of-Code
GitHub

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
Cuong Duy Nguyen

๐Ÿ’ป ๐Ÿ“– โš ๏ธ ๐Ÿ‘€

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT ยฉ cuongw

thinid v0.4.1

20 May 17:29
4def5fc
Compare
Choose a tag to compare

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

27 Apr 17:57
757a80e
Compare
Choose a tag to compare

Support length options.

import thinid from 'thinid';

console.log(thinid(9));
Output should be '13b6-351b'

๐Ÿ†” thinid v0.2

20 Apr 17:54
bf9212c
Compare
Choose a tag to compare

๐Ÿš€๐Ÿ“ฆ 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'