parse-uri
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/parse-uri package

1.0.11 • Public • Published

parse-uri

Last version Coverage Status NPM Status

Lightweight module for parsing an URI Based in Steven Levithan method.

Install

$ npm install parse-uri --save

Usage

const parseUri = require('parse-uri')

parseUri('myURL')

API

parseURI(str, [options])

options

strictMode

Type: boolean Default: false

Determinate if use loose or strict mode.

Loose mode deviates slightly from the official generic URI spec (RFC 3986)

Related

  • is-uri – Determinate if a string is a valid URI.

License

MIT © Kiko Beats

Readme

Keywords

Package Sidebar

Install

npm i parse-uri

Weekly Downloads

70,206

Version

1.0.11

License

MIT

Unpacked Size

6.06 kB

Total Files

4

Last publish

Collaborators

  • kikobeats