🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

parse-uri

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-uri

Lightweight module for parsing an URI

1.0.4
Source
npm
Version published
Maintainers
1
Created
Source

parse-uri

Last version NPM Status

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

Install

$ npm install parse-uri --save

If you want to use in the browser (powered by Browserify):

$ bower install parse-uri --save

and later link in your HTML:

<script src="bower_components/parse-uri/dist/parse-uri.js"></script>

Usage

var 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)

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

License

MIT © Kiko Beats

Keywords

URI

FAQs

Package last updated on 04 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts