snowflakeid
Small snowflake id module
Last updated 4 years ago by vap0r1ze .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install snowflakeid 
SYNC missed versions from official npm registry.

SnowflakeID

Constructing a Snowflake

First, you need to require the module:

const Snowflake = require('snowflakeid')

Now to create a snowflake.

let out = new Snowflake()

####Returns a Slowflake Object see below


Snowflake Object

Property Type Example Description
id String "231895749349921358" The unique Snowflake ID of the timestamp it was created, and the data you gave it, if you gave it data
timestamp Number 1477620674043 The timestamp that the Snowflake was created

Current Tags

  • 1.0.7                                ...           latest (4 years ago)

7 Versions

  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 3
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |