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

node-uuid-unique

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-uuid-unique

Generate UUID

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

node-uuid-unique

A simple Node.js package for generating and validating UUIDs.

Installation

Install the package using npm:

npm install node-uuid-unique

UUID Generation

To generate a new UUID, import the uuid function from the node-uuid-unique package and call it:

const { uuid } = require('node-uuid-unique');

const newUUID = uuid();
console.log(`Generated UUID: ${newUUID}`);

UUID Validation

To validate a UUID, import the validate function from the node-uuid-unique package and call it with the UUID you want to validate:

const { validate } = require('node-uuid-unique');

const isValid = validate('123e4567-e89b-12d3-a456-426614174000');
console.log(`Is the UUID valid? ${isValid}`);

Keywords

FAQs

Package last updated on 26 Jul 2024

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