get-url-param

1.0.1 • Public • Published

get-url-param

Install

Install with npm:

$ npm install get-url-param --save

<script />

You can simply include get-url-param like this:

<script src='[path of index.js]'></script>

Usage

var getURLParam=require("get-url-param");
var url="http://www.baidu.com/s=?ie=UTF-8&wd=mustache";
console.log(gurlp.getURLParam(url,"ie"));//UTF-8
console.log(gurlp.getURLParam(url,"noexist"));//null
 

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i get-url-param

Weekly Downloads

211

Version

1.0.1

License

MIT

Last publish

Collaborators

  • lushijie