This package has been deprecated

Author message:

Package has been renamed to @brillout/parse-url

@brillout/parse-uri

0.1.1 • Public • Published

Parses URIs.

Running

const parseUri = require('parse-uri'); // npm install @brillout/parse-uri

const path = 'hello/there?opt=1#sectionA';

console.log(parseUri(path));
console.log(parseUri('https://example.org/'+path));

prints

{ origin: null,
  pathname: '/hello/there',
  search: '?opt=1',
  hash: '#sectionA' }
{ origin: 'https://example.org',
  pathname: '/hello/there',
  search: '?opt=1',
  hash: '#sectionA' }

Readme

Keywords

none

Package Sidebar

Install

npm i @brillout/parse-uri

Weekly Downloads

2

Version

0.1.1

License

none

Unpacked Size

1.84 kB

Total Files

4

Last publish

Collaborators

  • brillout