UUID as a buffer.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
TheoryOfNekomata b30aac3589 Add publish config hace 1 año
src Initial commit hace 1 año
test Initial commit hace 1 año
.eslintrc Initial commit hace 1 año
.gitignore Initial commit hace 1 año
LICENSE Initial commit hace 1 año
README.md Initial commit hace 1 año
package.json Add publish config hace 1 año
pridepack.json Initial commit hace 1 año
publish.sh Add publish config hace 1 año
tsconfig.eslint.json Initial commit hace 1 año
tsconfig.json Initial commit hace 1 año
yarn.lock Initial commit hace 1 año

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.