Skip to content

xaviiic/xid-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Globally Unique ID Generator

xid-js is a global unique id generator module for Node.js. The generator implementation is ported from golang package xid.

A 20 chars long unique id can be generated directly without any configuration, and id is encoded in base32 format (w/o padding) by using Crockford's Base32 alphabet set.

Install

npm install xid-js

Usage

const xid = require('xid-js');

// generate an id
xid.next(); // b0xzcjjhcjkbqnpwz150

License

MIT License.

About

xid js is a globally unique id generator for Node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published