search2vars

0.0.2 • Public • Published

search2vars Build Status

Parsing url search to vars

Usage

npm install --save search2vars

API

var search2vars = require('search2vars');
var vars = search2vars("?id=ba649087-0a4c-48fd-9feb-5bc3f0eaaa9e&name=Peyton");
console.log(vars);
// {"id":"ba649087-0a4c-48fd-9feb-5bc3f0eaaa9e","name":"Peyton"}

Browser

<script src="https://cdn.rawgit.com/Urucas/search2vars/master/dist/search2vars.js"></script>
<script>
var search2vars = require('search2vars');
var vars = search2vars("?id=ba649087-0a4c-48fd-9feb-5bc3f0eaaa9e&name=Peyton");
console.log(vars);
// {"id":"ba649087-0a4c-48fd-9feb-5bc3f0eaaa9e","name":"Peyton"}
</script> 

Package Sidebar

Install

npm i search2vars

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • urucas
  • vrunoa