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 2d7128e43c Initial commit hace 2 años
src Initial commit hace 2 años
test Initial commit hace 2 años
.eslintrc Initial commit hace 2 años
.gitignore Initial commit hace 2 años
LICENSE Initial commit hace 2 años
README.md Initial commit hace 2 años
package.json Initial commit hace 2 años
pridepack.json Initial commit hace 2 años
tsconfig.eslint.json Initial commit hace 2 años
tsconfig.json Initial commit hace 2 años
yarn.lock Initial commit hace 2 años

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.