From 8ec8765ebfc8ceb7c31ab4d0d457d32185bd5481 Mon Sep 17 00:00:00 2001 From: hxl <254951576@qq.com> Date: Tue, 14 May 2019 11:46:37 +0800 Subject: [PATCH] update the rerdme --- README.md | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9b5694c..a1ddcff 100644 --- a/README.md +++ b/README.md @@ -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 } diff --git a/package.json b/package.json index 38c19bc..7f8cf88 100644 --- a/package.json +++ b/package.json @@ -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": {