Skip to content

Commit

Permalink
feat: replace querystring with fast-querystring
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 5, 2022
1 parent 0264aab commit 666e0f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const router = require('find-my-way')({
})
```

The default query string parser that find-my-way uses is the Node.js's core querystring module. You can change this default setting by passing the option querystringParser and use a custom one, such as [qs](https://www.npmjs.com/package/qs).
The default query string parser that find-my-way uses is [fast-querystring](https://www.npmjs.com/package/fast-querystring) module. You can change this default setting by passing the option querystringParser and use a custom one, such as [qs](https://www.npmjs.com/package/qs).

```js
const qs = require('qs')
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

const assert = require('assert')
const http = require('http')
const querystring = require('querystring')
const querystring = require('fast-querystring')
const isRegexSafe = require('safe-regex2')
const deepEqual = require('fast-deep-equal')
const { flattenNode, compressFlattenedNode, prettyPrintFlattenedNode, prettyPrintRoutesArray } = require('./lib/pretty-print')
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
},
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-querystring": "^0.3.1",
"safe-regex2": "^2.0.0"
},
"tsd": {
Expand Down
2 changes: 1 addition & 1 deletion test/custom-querystring-parser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const t = require('tap')
const test = t.test
const querystring = require('querystring')
const querystring = require('fast-querystring')
const FindMyWay = require('../')

test('Custom querystring parser', t => {
Expand Down

0 comments on commit 666e0f1

Please sign in to comment.