https://github.com/kikobeats/parse-uri
Lightweight module for parse an URI.
https://github.com/kikobeats/parse-uri
Last synced: 15 days ago
JSON representation
Lightweight module for parse an URI.
- Host: GitHub
- URL: https://github.com/kikobeats/parse-uri
- Owner: Kikobeats
- License: mit
- Created: 2016-02-04T20:26:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-04T09:50:11.000Z (26 days ago)
- Last Synced: 2025-04-15T22:49:42.917Z (15 days ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# parse-uri

[](https://coveralls.io/github/Kikobeats/parse-uri)
[](https://www.npmjs.org/package/parse-uri)> Lightweight module for parsing an URI Based in [Steven Levithan](http://blog.stevenlevithan.com/archives/parseuri) method.
## Install
```bash
$ npm install parse-uri --save
```## Usage
```js
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](http://tools.ietf.org/html/rfc3986))
### Related
- [is-uri](https://github.com/Kikobeats/is-uri#is-uri) – Determinate if a string is a valid URI.
## License
MIT © [Kiko Beats](http://kikobeats.com)