hex-to-uuid
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/hex-to-uuid package

1.1.1 • Public • Published

Convert HEX string to UUID string

Build Status

Examples of using

const hexToUuid = require('hex-to-uuid');
const uuidStringFromHexWithLeadingZero = hexToUuid('0xd3fd354067184687956bc8618a26e335');
console.log(uuidStringFromHexWithLeadingZero); //d3fd3540-6718-4687-956b-c8618a26e335
 
const uuidStringFromHexWithoutLeadingZero = hexToUuid('e13b23e91dcb41c8ab0be65b84161d20');
console.log(uuidStringFromHexWithoutLeadingZero); //e13b23e9-1dcb-41c8-ab0b-e65b84161d20

UUID to HEX converter

Dependencies (2)

Dev Dependencies (2)

Package Sidebar

Install

npm i hex-to-uuid

Weekly Downloads

2,032

Version

1.1.1

License

MIT

Unpacked Size

4.17 kB

Total Files

6

Last publish

Collaborators

  • derain