UUID as a buffer.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
TheoryOfNekomata 2d7128e43c Initial commit há 2 anos
src Initial commit há 2 anos
test Initial commit há 2 anos
.eslintrc Initial commit há 2 anos
.gitignore Initial commit há 2 anos
LICENSE Initial commit há 2 anos
README.md Initial commit há 2 anos
package.json Initial commit há 2 anos
pridepack.json Initial commit há 2 anos
tsconfig.eslint.json Initial commit há 2 anos
tsconfig.json Initial commit há 2 anos
yarn.lock Initial commit há 2 anos

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.