@types/uuid-parse
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/uuid-parse

Summary

This package contains type definitions for uuid-parse (https://github.com/zefferus/uuid-parse).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid-parse.

index.d.ts

/// <reference types="node" />

/**
 * Parse a UUID into it's component bytes
 * @param id UUID (-like) string
 * @param buffer Array or buffer where UUID bytes are to be written. Default: A new Buffer is used
 * @param offset Starting index in buffer at which to begin writing. Default: 0
 */
export function parse(
    id: string,
    buffer?: Buffer | any[],
    offset?: number,
): Buffer;

/**
 * Convert UUID byte array (ala parse()) into a string
 * @param buffer Array or buffer where UUID bytes are read.
 * @param offset Starting index in buffer at which to begin reading. Default: 0
 */
export function unparse(buffer: Buffer, offset?: number): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Christian Rackerseder.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/uuid-parse

Weekly Downloads

12,482

Version

1.0.2

License

MIT

Unpacked Size

3.98 kB

Total Files

5

Last publish

Collaborators

  • types