Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@actually_connor/uuid
Advanced tools
A JavaScript library that provides a 'ramsey/uuid'-like interface for the uuid package
A JavaScript library that provides a 'ramsey/uuid'-like interface for the uuid package.
@actually_connor/uuid is a JavaScript library for generating and working with universally unique identifiers (UUIDs). It provides a ramsey/uuid-like interface to the uuid package that
This project adheres to a code of conduct. By participating in this project and its community, you are expected to uphold this code.
npm i --save @actually_connor/uuid
import { Uuid } from '@actually_connor/uuid';
const uuid = Uuid.uuid4();
... or using CommonJS syntax:
const { Uuid } = require('@actually_connor/uuid');
const uuid = Uuid.uuid4();
The recommended use for saving UUID values in the database would be to create a BINARY(16)
column in the database.
When persisting the UUIDs you can UNHEX
the hexadecimal representation of the UUID.
await this.model
.createQueryBuilder()
.insert()
.into(Table)
.values({
uuid: () => `UNHEX('${Uuid.uuid4().getHex()}')`,
})
.execute();
INSERT INTO `ActivityDefinition` (`uuid`)
VALUES('UNHEX("616343E4FC6746A598DC73C39C873F34")');
Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.
The @actually_connor/uuid library is copyright © Connor Smyth and licensed for use under the MIT License (MIT). Please see LICENSE for more information.
FAQs
A JavaScript library that provides a 'ramsey/uuid'-like interface for the uuid package
We found that @actually_connor/uuid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.