# uuid-parse

> RFC4122 UUID parser

Latest version **1.1.0** (published 2019-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install uuid-parse
pnpm add uuid-parse
yarn add uuid-parse
bun add uuid-parse
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-02-26 |
| First published | 2016-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/uuid-parse) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Maintainers | pizzabrandon |
| Keywords | uuid, parse, guid, rfc4122 |

## Links

- npm: https://www.npmjs.com/package/uuid-parse
- Repository: https://github.com/zefferus/uuid-parse
- Homepage: https://github.com/zefferus/uuid-parse#readme
- Issues: https://github.com/zefferus/uuid-parse/issues
- npm.io page: https://npm.io/package/uuid-parse

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-02-26
- 1.0.0 — 2016-12-06

## README

# uuid-parse [![Build Status](https://secure.travis-ci.org/zefferus/uuid-parse.svg?branch=parse)](http://travis-ci.org/zefferus/uuid-parse) #

## NOTE: This module is no longer maintained

Simple, fast parsing and unparsing of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS.

Features:

* Parses and unparses UUIDs to and from Buffer to String

## Quickstart

```shell
npm install uuid-parse
```

```javascript
const uuidParse = require('uuid-parse');
```

## API

### uuidParse.parse(id[, buffer[, offset]])
### uuidParse.unparse(buffer[, offset])

Parse and unparse UUIDs

  * `id` - (String) UUID(-like) string
  * `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. Default: A new Buffer is used
  * `offset` - (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'); // -> <Buffer 79 7f f0 43 11 eb 11 e1 80 d6 51 09 98 75 5d 10>
const string = uuidParse.unparse(bytes); // -> '797ff043-11eb-11e1-80d6-510998755d10'
```

## Testing

```
npm test
```

## Acknowledgments

Please make sure to check out the repository that originated these functions: [node-uuid](https://github.com/kelektiv/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.

---
_Source: https://npm.io/package/uuid-parse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
