Skip to content

Commit

Permalink
update the rerdme
Browse files Browse the repository at this point in the history
  • Loading branch information
javascriptpopo committed May 14, 2019
1 parent 25852b1 commit 8ec8765
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@


## use in node
- install
```bash
npm i querystring2json
```
- example
``` javascript
const qs =require("../lib/index.js");
const qs =require("querystring2json");
let str="a=1&a=2&b=2&c=3&d=123&e=true";
let obj=qs.parse(str);
console.log(obj); //{ a: [ '1', '2' ], b: '2', c: '3',d:123,e:true }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"build":"webpack --mode production"
},
"keywords": [],
"keywords": ["querystring","json","stringify","parse"],
"author": "",
"license": "ISC",
"devDependencies": {
Expand Down

0 comments on commit 8ec8765

Please sign in to comment.