RFC4122 UUID parser
npm install uuid-parseSimple, fast parsing and unparsing of RFC4122 UUIDS.
Features:
* Parses and unparses UUIDs to and from Buffer to String
``shell`
npm install uuid-parse
`javascript`
const uuidParse = require('uuid-parse');
Parse and unparse UUIDs
* id - (String) UUID(-like) stringbuffer
* - (Array | Buffer) Array or buffer where UUID bytes are to be written. Default: A new Buffer is usedoffset
* - (Number) Starting index in buffer at which to begin writing. Default: 0
Example parsing and unparsing a UUID string
`javascript`
const bytes = uuidParse.parse('797ff043-11eb-11e1-80d6-510998755d10'); // ->
const string = uuidParse.unparse(bytes); // -> '797ff043-11eb-11e1-80d6-510998755d10'
```
npm test
Please make sure to check out the repository that originated these functions: node-uuid. These functions were removed from a recent version of that library and I wanted to make sure they were still exposed for the packages who were dependent on them.