UNPKG

@types/uuid-parse

Version:
40 lines (32 loc) 1.33 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid-parse/index.d.ts) ````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](https://npmjs.com/package/@types/node) # Credits These definitions were written by [Christian Rackerseder](https://github.com/screendriver).