comb-uuid

1.0.2 • Public • Published

comb-uuid

Implements COMB UUIDs (UUID v4 Variant B) which sort to chronological order.

Example

'use strict';

const CombUUID = require('comb-uuid');

// create a new UUID
const uuid = CombUUID.encode();

// decode an existing UUID
const obj = CombUUID.decode(uuid);

// { version: '4',
//   variant: 'b',
//   timestamp: 161745940159400,
//   timestamp_js: 2021-04-03T14:16:41.594Z,
//   random: '6f842887a4866c60fd' }

Readme

Keywords

Package Sidebar

Install

npm i comb-uuid

Weekly Downloads

8

Version

1.0.2

License

ISC

Unpacked Size

7.81 kB

Total Files

7

Last publish

Collaborators

  • tcort