Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/DeRain/uuid-to-hex

Convert uuid string representation into hex string
https://github.com/DeRain/uuid-to-hex

nodejs npm-module npm-package uuid uuid-by-string uuid-to-hex

Last synced: 3 months ago
JSON representation

Convert uuid string representation into hex string

Awesome Lists containing this project

README

        

# Convert UUID string to hex string

[![Build Status](https://travis-ci.org/DeRain/uuid-to-hex.svg?branch=master)](https://travis-ci.org/DeRain/uuid-to-hex)

## Examples of using

```javascript
const uuidToHex = require('uuid-to-hex');
const hexStringWithLeadingZero = uuidToHex('d3fd3540-6718-4687-956b-c8618a26e335', true);
console.log(hexStringWithLeadingZero); //0xd3fd354067184687956bc8618a26e335

const hexString = uuidToHex('e13b23e9-1dcb-41c8-ab0b-e65b84161d20');
console.log(hexString); //e13b23e91dcb41c8ab0be65b84161d20
```
[HEX to UUID converter](https://www.npmjs.com/package/hex-to-uuid)