@adico/sequencegenerator
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@adico/sequencegenerator

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
Patreon donate button Flattr donate button Liberapay donate button PayPal donate button

Time Sortable Distributed Unique Id Generator based on Twitter Snowflake

Usage

Complete API Documentation.

API

Install locally npm install --save @adico/sequencegenerator, then use like so:

import SequenceGenerator from '@adico/sequencegenerator'

// Generate Unique Id based on NodeId as hashed MAC address
console.log(new SequenceGenerator(254).nextId())

Advanced

Install

npm

  • Install: npm install --save @adico/sequencegenerator
  • Import: import * as pkg from ('@adico/sequencegenerator')
  • Require: const pkg = require('@adico/sequencegenerator')

Editions

This package is published with the following editions:

  • @adico/sequencegenerator aliases @adico/sequencegenerator/index.js which uses the Editions Autoloader to automatically select the correct edition for the consumer's environment
  • @adico/sequencegenerator/src/index.ts is TypeScript source code with Import for modules
  • @adico/sequencegenerator/edition-esnext/index.js is TypeScript compiled against ESNext for Node.js with Require for modules
  • @adico/sequencegenerator/edition-es5/index.js is TypeScript compiled against ES5 for Node.js with Require for modules

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Patreon donate button Flattr donate button Liberapay donate button PayPal donate button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

  • Copyright © 2019+ adico

and licensed under:

Package Sidebar

Install

npm i @adico/sequencegenerator

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

27.6 kB

Total Files

16

Last publish

Collaborators

  • adico