merkle-snowflake
v1.2.1
Published
[![NPM version](https://img.shields.io/npm/v/merkle-snowflake.svg?style=flat)](https://npmjs.org/package/merkle-snowflake) [![NPM downloads](http://img.shields.io/npm/dm/merkle-snowflake.svg?style=flat)](https://npmjs.org/package/merkle-snowflake) [![Buil
Downloads
4
Readme
Merkle Snowflake
An algorithm for generating global unique identifiers.
Install
npm install merkle-snowflake
# or
yarn add merkle-snowflake
Usage
import CryptoJS from 'crypto-js';
import MerkleSnowflake, { MerkleShortSnowflake } from 'merkle-snowflake';
// import { MerkleSnowflake, MerkleShortSnowflake } from 'merkle-snowflake';
// const { MerkleSnowflake, MerkleShortSnowflake } = require('merkle-snowflake');
MerkleSnowflake(CryptoJS.MD5);
// '5da052257444383'
MerkleShortSnowflake(CryptoJS.MD5);
// 2457686126313367