# parse-dat-url

> Node's url.parse() but updated to support versioned dat URLs.

Latest version **3.0.3** (published 2019-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-dat-url
pnpm add parse-dat-url
yarn add parse-dat-url
bun add parse-dat-url
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2019-07-31 |
| First published | 2017-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Paul Frazee |
| Maintainers | pfraze |
| Keywords | dat, url, parse |

## Links

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

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 3.0.3 (latest) — 2019-07-31
- 3.0.2 — 2019-07-27
- 3.0.1 — 2017-07-17
- 3.0.0 — 2017-07-17
- 2.0.1 — 2017-05-02
- 2.0.0 — 2017-04-30
- 1.0.1 — 2017-04-30
- 1.0.0 — 2017-04-30

## README

# parse-dat-url

Node url.parse updated to support versioned dat URLs.

```js
var parse = require('parse-dat-url')

parse('dat://584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21+v1.0.0/path/to/file.txt')
/* => {
  protocol: 'dat:',
  slashes: true,
  auth: null,
  host: '584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21',
  port: null,
  hostname: '584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21',
  hash: null,
  search: null,
  query: null,
  pathname: '/path/to/file.txt',
  path: '/path/to/file.txt',
  href: 'dat://584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21+v1.0.0/path/to/file.txt',
  version: 'v1.0.0'
}*/
```

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