- Support for Node and ES6 modules
- Fast, lightweight and easy to use
Easy to use, ID generator. Supports 5 methods:
- UUID Version 4 (RFC4122 compliant)
- Hash
- Digits
- Symbols
- The Classic
npm i kimp
import { kimp } from 'kimp'
console.log(kimp.v4())
// 455a5a0b-fb8f-47d6-977f-937375b842d4
UUID (or GUID):
kimp.v4()
// 455a5a0b-fb8f-47d6-977f-937375b842d4
Hash:
kimp.characters(limit: number)
// eF7d9nEj
Digits:
kimp.digits(limit: number)
// 72260183
Symbols:
kimp.symbols(limit: number)
// @B3j2$x&
Classic:
kimp.classic()
// yen5bew1-lean-hexagon-wrg9tpex7mii
const a = { start: 'hello', end: 'nooooo' }
kimp.classic(a)
// hello-tiresome-desire-nooooo