New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

flake-id

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flake-id

Generate 64-Bit (with 63 signigicant bits) k-ordered, conflict-free ids in a distributed environment.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Flake ID

Generate 64-Bit (with 63 signigicant bits) k-ordered, conflict-free ids in a distributed environment.

Installation

$ npm install --save git@gitlab.tristianflanagan.com:node-portal/flake-id.git

Usage

const FlakeId = require('flake-id');

const flakeid = new FlakeId({
	epoch: 0,
	worker: 0,
	datacenter: 0,
	seqMask: 0xFFF
});

flakeid.get();
// <Buffer 2b 35 05 94 a1 80 00 00>

Returns a Buffer object

FAQs

Package last updated on 14 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts