Socket
Socket
Sign inDemoInstall

@lukeed/uuid

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lukeed/uuid

A tiny (230B) and fast UUID (v4) generator for Node and the browser


Version published
Maintainers
1
Created

What is @lukeed/uuid?

@lukeed/uuid is a lightweight and fast library for generating universally unique identifiers (UUIDs). It supports generating UUIDs of versions 1, 4, and 5, making it versatile for various use cases where unique identifiers are required.

What are @lukeed/uuid's main functionalities?

Generate UUID v1

Generates a UUID of version 1, which is based on the current timestamp and the MAC address of the machine.

const { v1 } = require('@lukeed/uuid');
const uuidV1 = v1();
console.log(uuidV1);

Generate UUID v4

Generates a UUID of version 4, which is based on random numbers.

const { v4 } = require('@lukeed/uuid');
const uuidV4 = v4();
console.log(uuidV4);

Generate UUID v5

Generates a UUID of version 5, which is based on a namespace and a name using SHA-1 hashing.

const { v5 } = require('@lukeed/uuid');
const uuidV5 = v5('namespace', 'name');
console.log(uuidV5);

Other packages similar to @lukeed/uuid

Keywords

FAQs

Package last updated on 31 Mar 2023

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