0.0.2 • Published 8 years ago

uri-hero v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

URI Hero

Read and manipulate URI strings

Install

$ npm install --save uri-hero

Usage

var UriHero = require("uri-hero");

url = "https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=nodejs"
UriHero.getParameter(url, "q") // => "nodejs"

API

getParameter(url, parameterKey)

NameTypeDescription
urlStringThe url to parse
parameterKeyStringThe parameter key you want to retrieve the value for
var UriHero = require("uri-hero");

url = "https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=nodejs"
UriHero.getParameter(url, "q") // => "nodejs"

License

MIT © Joe Gesualdo