parse-uri
Lightweight module for parsing an URI
Last updated 6 years ago by kikobeats .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parse-uri 
SYNC missed versions from official npm registry.

parse-uri

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

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)

Related

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

License

MIT © Kiko Beats

Current Tags

  • 1.0.3                                ...           latest (6 years ago)

3 Versions

  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |