kimp
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

kimp


  • 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

Installation

npm i kimp  

Usage

import { kimp } from 'kimp'  
  
console.log(kimp.v4())  
// 455a5a0b-fb8f-47d6-977f-937375b842d4  

Types

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

Package Sidebar

Install

npm i kimp

Weekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

73.2 kB

Total Files

18

Last publish

Collaborators

  • herbievine