better-snowflake

1.1.0 • Public • Published

better-snowflake

A simple and quick snowflake libary, better performance and effective.

How to use

1. install better-snowflake

npm install better-snowflake --save

2. usage

  const snowflake= require('better-snowflake')
  const worker_id=3, datacenter_id=7
  const idWorker = new Snowflake(worker_id, datacenter_id)
 
  const uuid = idWorker.nextId()
  console.log(uuid)

Contact/Issues

Email: alterhu2020@gmail.com

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i better-snowflake

      Weekly Downloads

      3

      Version

      1.1.0

      License

      MIT

      Unpacked Size

      11.8 kB

      Total Files

      4

      Last publish

      Collaborators

      • alterhu2020