Package Exports
- parse-uri
- parse-uri/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parse-uri) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
parse-uri
Lightweight module for parsing an URI Based in Steven Levithan method.
Install
$ npm install parse-uri --saveUsage
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)
Benchmark
Compared vs parseuri:
============================================================
simple | parse-uri is 3302.0% faster
basic | parse-uri is 1370.8% faster
complex | parse-uri is 967.7% faster
mailto | parse-uri is 1493.3% faster
tel | parse-uri is 3296.8% faster
ftp | parse-uri is 1641.9% faster
file | parse-uri is 3305.7% faster
data | parse-uri is 3030.4% faster
javascript | parse-uri is 2992.0% faster
custom | parse-uri is 1196.0% faster
longUrl | parse-uri is 547.1% faster
unicodeUrl | parse-uri is 1005.6% faster
============================================================
🏆 Overall Winner: parse-uri (2058.1% faster on average)See more numbers at benchmark.
Related
- is-uri – Determinate if a string is a valid URI.
License
MIT © Kiko Beats