🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

uuid-parse

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuid-parse

RFC4122 UUID parser

1.1.0
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

What is uuid-parse?

The uuid-parse npm package provides utilities for parsing and formatting UUIDs. It allows you to convert UUIDs between string and byte array representations, which can be useful for various applications such as database storage, network transmission, and more.

What are uuid-parse's main functionalities?

UUID to Byte Array

This feature allows you to convert a UUID string into a byte array. This can be useful for storing UUIDs in a more compact binary format.

const uuidParse = require('uuid-parse');
const uuid = '550e8400-e29b-41d4-a716-446655440000';
const bytes = uuidParse.parse(uuid);
console.log(bytes);

Byte Array to UUID

This feature allows you to convert a byte array back into a UUID string. This is useful for converting stored binary UUIDs back into their string representation.

const uuidParse = require('uuid-parse');
const bytes = [85, 14, 132, 0, 226, 155, 65, 212, 167, 22, 68, 102, 85, 68, 0, 0];
const uuid = uuidParse.unparse(bytes);
console.log(uuid);

Other packages similar to uuid-parse

Keywords

uuid

FAQs

Package last updated on 26 Feb 2019

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