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.

README.md 701 B

12345678910111213141516171819202122232425262728
  1. # uuid-buffer
  2. UUID as a Buffer.
  3. UUIDs are 128-bit values used for identification of entities.
  4. Representing them as strings are expensive since it can incur more than
  5. 128 bits. This library will help properly represent UUID values while
  6. still having some utility methods like serialization (i.e. converting
  7. them to string representations), as well as generation according to the
  8. v4 spec.
  9. ## Usage
  10. ```ts
  11. import { Uuid } from '@theoryofnekomata/uuid-buffer';
  12. const newUuidV4 = Uuid.v4(); // sync
  13. let uuidStr = '1d4a8818-a773-4b52-9b6b-4db8c7fd9bf2';
  14. // this method can accept strings, buffers, and bute arrays
  15. const uuidFromStr = Uuid.from(uuidStr);
  16. ```
  17. ## License
  18. See LICENSE file for details.