# jsdom-url

> a proxy JSDOM URL object

Latest version **3.0.1** (published 2019-12-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install jsdom-url
pnpm add jsdom-url
yarn add jsdom-url
bun add jsdom-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.1 |
| Published | 2019-12-02 |
| First published | 2018-01-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 25.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | bluelovers |
| Keywords | href, jsdom, url, uri, urlencoded, urlencode, urldecode, parse, decode, whatwg-url, whatwg |

## Links

- npm: https://www.npmjs.com/package/jsdom-url
- Repository: https://github.com/bluelovers/node-jsdom-url
- Homepage: https://github.com/bluelovers/node-jsdom-url#readme
- Issues: https://github.com/bluelovers/node-jsdom-url/issues
- npm.io page: https://npm.io/package/jsdom-url

## Dependencies (3)

- [whatwg-url](https://npm.io/package/whatwg-url.md) ^7.1.0
- [class-proxy](https://npm.io/package/class-proxy.md) ^1.1.2
- [@types/whatwg-url](https://npm.io/package/@types/whatwg-url.md) ^6.4.0

## 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

- 3.0.1 (latest) — 2019-12-02
- 3.0.0 — 2019-12-02
- 2.2.1 — 2019-01-24
- 2.2.0 — 2018-02-16
- 2.1.2 — 2018-02-12
- 2.1.1 — 2018-02-12
- 2.1.0 — 2018-02-11
- 2.0.3 — 2018-02-11
- 2.0.2 — 2018-02-11
- 2.0.1 — 2018-02-11
- 2.0.0 — 2018-02-11
- 1.0.0 — 2018-01-21

## README

# jsdom-url

> a proxy JSDOM URL object

`npm install jsdom-url`

## demo

```ts
import URL from 'jsdom-url';

let url = new URL('https://www.npmjs.com/package/jsdom-url');

console.log(url);

console.log(`-------------`);

console.log(Object.keys(url));

console.log(`-------------`);

console.dir(url);

console.log(`-------------`);

for (let k in url)
{
	console.log(k, url[k]);
}

console.log(`-------------`);

console.log(url.origin);
```

### output

```
URL("https://www.npmjs.com/package/jsdom-url")
-------------
[ 'href',
  'origin',
  'protocol',
  'username',
  'password',
  'host',
  'hostname',
  'port',
  'pathname',
  'search',
  'hash',
  'searchParams' ]
-------------
URLImplCore {
  href: 'https://www.npmjs.com/package/jsdom-url',
  origin: 'https://www.npmjs.com',
  protocol: 'https:',
  username: '',
  password: '',
  host: 'www.npmjs.com',
  hostname: 'www.npmjs.com',
  port: '',
  pathname: '/package/jsdom-url',
  search: '',
  hash: '',
  searchParams: 
   URLSearchParamsImpl {
     _list: [],
     _url: URLImplCore { _url: [Object], _query: [Circular] },
     [Symbol(wrapper)]: URLSearchParams {} } }
-------------
href https://www.npmjs.com/package/jsdom-url
origin https://www.npmjs.com
protocol https:
username 
password 
host www.npmjs.com
hostname www.npmjs.com
port 
pathname /package/jsdom-url
search 
hash 
searchParams URLSearchParamsImpl {
  _list: [],
  _url: URL("https://www.npmjs.com/package/jsdom-url"),
  [Symbol(wrapper)]: URLSearchParams("") }
-------------
https://www.npmjs.com
```

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