Press "Enter" to skip to content

A UUID Generator for Both Browser and Nodejs | lsp-uuid

lsp-uuid is a SnowFlake based uuid generator for both browser and Nodejs. Keep serialization and can be deserialized.

javascript uuid generator, generate uuid from timestamp javascript, angular uuid, uuid from string javascript, npm uuid, uuid node js

Why lsp-uuid

lsp-uuid has these features below:

  • Up to 262,143 different IDs in one second;
  • keep sequence
  • ID length is 15. Less than others.
  • can be deserialized
  • no dependencies
  • Less than 1 KB

How to make use of it:

1. Install and import lsp-uuid.

# NPM
$ npm i lsp-uuid
import { uuid, parseUUID } from 'lsp-uuid'

2. Create a UUID.

const id = uuid()
// => 5f0d49fa5880000

3. UUID analysis.

parseUUID(id)
/*
{
  flg: 0, 
  timestamp: 1632979380578, 
  count: 0
}
*/

Fast UUID Generator & Parser In JavaScript, lsp-uuid Plugin/Github, nodejs generate uuid


See Demo And Download

Official Website(ryouaki): Click Here

This superior jQuery/javascript plugin is developed by ryouaki . For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *