# url-parse-fix-auth

> Fix `url.parse` to work with percent (%) characters in auth strings

Latest version **0.0.1** (published 2016-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install url-parse-fix-auth
pnpm add url-parse-fix-auth
yarn add url-parse-fix-auth
bun add url-parse-fix-auth
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-06-06 |
| First published | 2016-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Andreas Pizsa |
| Maintainers | andreaspizsa |
| Keywords | fix, bugfix, url.parse, parse, url, password, percent, error, exception |

## Links

- npm: https://www.npmjs.com/package/url-parse-fix-auth
- Repository: https://github.com/andreaspizsa/url-parse-fix-auth
- Homepage: https://github.com/AndreasPizsa/url-parse-fix-auth
- Issues: https://github.com/AndreasPizsa/url-parse-fix-auth/issues
- npm.io page: https://npm.io/package/url-parse-fix-auth

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2016-06-06

## README

# url-parse-fix-auth [![NPM version](https://badge.fury.io/js/url-parse-fix-auth.svg)](http://badge.fury.io/js/url-parse-fix-auth)

> Fix `url.parse` to work with percent (%) characters in auth strings

#### `url.parse` fails when parsing a url with a password containing a percent character

```js
var url = require('url');
url.parse('http://host.com/'); // works
url.parse('http://user:pass@host.com/'); // works
url.parse('http://user:pass%word@host.com/'); // Exception
```

## Install

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i url-parse-fix-auth --save
```

## Usage

```js
var parseUrl = require('url-parse-fix-auth');

parseUrl('http://username:pass%word@host.com/'); // works!
```

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/AndreasPizsa/url-parse-fix-auth/issues/new).

## Author

**Andreas Pizsa**

<!-- `github`, `github.username`, and `username` variables are undefined -->
<!-- `twitter`, `twitter.username`, and `username` variables are undefined -->

## License

Copyright © 2016 Andreas Pizsa
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 06, 2016._

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