Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
javascriptpopo committed Oct 8, 2019
1 parent 8ec8765 commit aa722fd
Show file tree
Hide file tree
Showing 12 changed files with 8,399 additions and 31 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env"]
}
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@
## to develop
- install
``` bash
npm isntall

npm install
```
- test
```
npm run test
```
- build
```bash
Expand Down
13 changes: 9 additions & 4 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@

const qs =require("../lib/index.js");

let str="a=1&a=2&b=2&c=3&d=123&e=true";
let obj=qs.parse(str);
console.log(obj);
console.log(qs.stringify(obj));
let str="a=1 &a=2&b=2&c=3&d=123&e=true";
let obj1=qs.parse(str);
console.log(obj1);

let obj2={ a: [ '1', '2' ], b: '2', c: '3', d: '123', e: 'true' }
console.log(qs.stringify(obj2));

let obj3={ a: [ '1', '2' ], b: '2', c: '3', d: '123', e: 'true',f:{a:1} }
console.log(qs.stringify(obj3));


2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aa722fd

Please sign in to comment.