Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

big-uuid

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-uuid

An RFC 4112 conformant UUID generator creating v1, v3, v4, and v5 UUIDs.

  • 0.4.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-96.77%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

big-uuid

Summary

An RFC 4112 conformant UUID generator creating v1, v3, v4, and v5 UUIDs. Depends on the crypto-js package for its usage of MD5 (v3) and SHA (v5) hashing and nothing else.

Usage

In node, first install the package: npm install --save big-uuid

Then require the package:


const v4 = new uuid.UUID();
console.log(v4.id);
// 005e31bc-82a9-4ad8-ce3f-33dce8f03488

const v1 = new uuid.UUID({
  version: 1,
  // Optionally provide your own clockSequenceGetter,
  // nodeIdentifierGetter, and/or timestampGetter.
});

const v3 = new uuid.UUID({
  version: 3,
  /* One of the UUIDs from the standard or one of your making. */
  namespaceId: uuid.NamespaceIds.URL,
  name: 'foobar',
});

const v5 = new uuid.UUID({
  version: 3,
  /* One of the UUIDs from the standard or one of your making. */
  namespaceId: uuid.NamespaceIds.X500,
  name: 'test',
});

In the browser, build the package (with npm run build) or install the package from npm and navigate to node_modules/big-uuid, then copy the dist/browser/index.js file and point the src of a script block to that file.

Keywords

FAQs

Package last updated on 17 Oct 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc