UUID as a buffer.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
TheoryOfNekomata 2d7128e43c Initial commit преди 2 години
src Initial commit преди 2 години
test Initial commit преди 2 години
.eslintrc Initial commit преди 2 години
.gitignore Initial commit преди 2 години
LICENSE Initial commit преди 2 години
README.md Initial commit преди 2 години
package.json Initial commit преди 2 години
pridepack.json Initial commit преди 2 години
tsconfig.eslint.json Initial commit преди 2 години
tsconfig.json Initial commit преди 2 години
yarn.lock Initial commit преди 2 години

README.md

uuid-buffer

UUID as a Buffer.

UUIDs are 128-bit values used for identification of entities. Representing them as strings are expensive since it can incur more than 128 bits. This library will help properly represent UUID values while still having some utility methods like serialization (i.e. converting them to string representations), as well as generation according to the v4 spec.

Usage

import { Uuid } from '@theoryofnekomata/uuid-buffer';

const newUuidV4 = Uuid.v4(); // sync

let uuidStr = '1d4a8818-a773-4b52-9b6b-4db8c7fd9bf2';

// this method can accept strings, buffers, and bute arrays
const uuidFromStr = Uuid.from(uuidStr);

License

See LICENSE file for details.