You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. # qs <sup>[![Version Badge][2]][1]</sup>
  2. [![Build Status][3]][4]
  3. [![dependency status][5]][6]
  4. [![dev dependency status][7]][8]
  5. [![License][license-image]][license-url]
  6. [![Downloads][downloads-image]][downloads-url]
  7. [![npm badge][11]][1]
  8. A querystring parsing and stringifying library with some added security.
  9. Lead Maintainer: [Jordan Harband](https://github.com/ljharb)
  10. The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring).
  11. ## Usage
  12. ```javascript
  13. var qs = require('qs');
  14. var assert = require('assert');
  15. var obj = qs.parse('a=c');
  16. assert.deepEqual(obj, { a: 'c' });
  17. var str = qs.stringify(obj);
  18. assert.equal(str, 'a=c');
  19. ```
  20. ### Parsing Objects
  21. [](#preventEval)
  22. ```javascript
  23. qs.parse(string, [options]);
  24. ```
  25. **qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`.
  26. For example, the string `'foo[bar]=baz'` converts to:
  27. ```javascript
  28. assert.deepEqual(qs.parse('foo[bar]=baz'), {
  29. foo: {
  30. bar: 'baz'
  31. }
  32. });
  33. ```
  34. When using the `plainObjects` option the parsed value is returned as a null object, created via `Object.create(null)` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like:
  35. ```javascript
  36. var nullObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true });
  37. assert.deepEqual(nullObject, { a: { hasOwnProperty: 'b' } });
  38. ```
  39. By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. *WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option.
  40. ```javascript
  41. var protoObject = qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true });
  42. assert.deepEqual(protoObject, { a: { hasOwnProperty: 'b' } });
  43. ```
  44. URI encoded strings work too:
  45. ```javascript
  46. assert.deepEqual(qs.parse('a%5Bb%5D=c'), {
  47. a: { b: 'c' }
  48. });
  49. ```
  50. You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`:
  51. ```javascript
  52. assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), {
  53. foo: {
  54. bar: {
  55. baz: 'foobarbaz'
  56. }
  57. }
  58. });
  59. ```
  60. By default, when nesting objects **qs** will only parse up to 5 children deep. This means if you attempt to parse a string like
  61. `'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be:
  62. ```javascript
  63. var expected = {
  64. a: {
  65. b: {
  66. c: {
  67. d: {
  68. e: {
  69. f: {
  70. '[g][h][i]': 'j'
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }
  77. };
  78. var string = 'a[b][c][d][e][f][g][h][i]=j';
  79. assert.deepEqual(qs.parse(string), expected);
  80. ```
  81. This depth can be overridden by passing a `depth` option to `qs.parse(string, [options])`:
  82. ```javascript
  83. var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 });
  84. assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } });
  85. ```
  86. The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number.
  87. For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option:
  88. ```javascript
  89. var limited = qs.parse('a=b&c=d', { parameterLimit: 1 });
  90. assert.deepEqual(limited, { a: 'b' });
  91. ```
  92. To bypass the leading question mark, use `ignoreQueryPrefix`:
  93. ```javascript
  94. var prefixed = qs.parse('?a=b&c=d', { ignoreQueryPrefix: true });
  95. assert.deepEqual(prefixed, { a: 'b', c: 'd' });
  96. ```
  97. An optional delimiter can also be passed:
  98. ```javascript
  99. var delimited = qs.parse('a=b;c=d', { delimiter: ';' });
  100. assert.deepEqual(delimited, { a: 'b', c: 'd' });
  101. ```
  102. Delimiters can be a regular expression too:
  103. ```javascript
  104. var regexed = qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ });
  105. assert.deepEqual(regexed, { a: 'b', c: 'd', e: 'f' });
  106. ```
  107. Option `allowDots` can be used to enable dot notation:
  108. ```javascript
  109. var withDots = qs.parse('a.b=c', { allowDots: true });
  110. assert.deepEqual(withDots, { a: { b: 'c' } });
  111. ```
  112. If you have to deal with legacy browsers or services, there's
  113. also support for decoding percent-encoded octets as iso-8859-1:
  114. ```javascript
  115. var oldCharset = qs.parse('a=%A7', { charset: 'iso-8859-1' });
  116. assert.deepEqual(oldCharset, { a: '§' });
  117. ```
  118. Some services add an initial `utf8=✓` value to forms so that old
  119. Internet Explorer versions are more likely to submit the form as
  120. utf-8. Additionally, the server can check the value against wrong
  121. encodings of the checkmark character and detect that a query string
  122. or `application/x-www-form-urlencoded` body was *not* sent as
  123. utf-8, eg. if the form had an `accept-charset` parameter or the
  124. containing page had a different character set.
  125. **qs** supports this mechanism via the `charsetSentinel` option.
  126. If specified, the `utf8` parameter will be omitted from the
  127. returned object. It will be used to switch to `iso-8859-1`/`utf-8`
  128. mode depending on how the checkmark is encoded.
  129. **Important**: When you specify both the `charset` option and the
  130. `charsetSentinel` option, the `charset` will be overridden when
  131. the request contains a `utf8` parameter from which the actual
  132. charset can be deduced. In that sense the `charset` will behave
  133. as the default charset rather than the authoritative charset.
  134. ```javascript
  135. var detectedAsUtf8 = qs.parse('utf8=%E2%9C%93&a=%C3%B8', {
  136. charset: 'iso-8859-1',
  137. charsetSentinel: true
  138. });
  139. assert.deepEqual(detectedAsUtf8, { a: 'ø' });
  140. // Browsers encode the checkmark as &#10003; when submitting as iso-8859-1:
  141. var detectedAsIso8859_1 = qs.parse('utf8=%26%2310003%3B&a=%F8', {
  142. charset: 'utf-8',
  143. charsetSentinel: true
  144. });
  145. assert.deepEqual(detectedAsIso8859_1, { a: 'ø' });
  146. ```
  147. If you want to decode the `&#...;` syntax to the actual character,
  148. you can specify the `interpretNumericEntities` option as well:
  149. ```javascript
  150. var detectedAsIso8859_1 = qs.parse('a=%26%239786%3B', {
  151. charset: 'iso-8859-1',
  152. interpretNumericEntities: true
  153. });
  154. assert.deepEqual(detectedAsIso8859_1, { a: '☺' });
  155. ```
  156. It also works when the charset has been detected in `charsetSentinel`
  157. mode.
  158. ### Parsing Arrays
  159. **qs** can also parse arrays using a similar `[]` notation:
  160. ```javascript
  161. var withArray = qs.parse('a[]=b&a[]=c');
  162. assert.deepEqual(withArray, { a: ['b', 'c'] });
  163. ```
  164. You may specify an index as well:
  165. ```javascript
  166. var withIndexes = qs.parse('a[1]=c&a[0]=b');
  167. assert.deepEqual(withIndexes, { a: ['b', 'c'] });
  168. ```
  169. Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number
  170. to create an array. When creating arrays with specific indices, **qs** will compact a sparse array to only the existing values preserving
  171. their order:
  172. ```javascript
  173. var noSparse = qs.parse('a[1]=b&a[15]=c');
  174. assert.deepEqual(noSparse, { a: ['b', 'c'] });
  175. ```
  176. Note that an empty string is also a value, and will be preserved:
  177. ```javascript
  178. var withEmptyString = qs.parse('a[]=&a[]=b');
  179. assert.deepEqual(withEmptyString, { a: ['', 'b'] });
  180. var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c');
  181. assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] });
  182. ```
  183. **qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will
  184. instead be converted to an object with the index as the key. This is needed to handle cases when someone sent, for example, `a[999999999]` and it will take significant time to iterate over this huge array.
  185. ```javascript
  186. var withMaxIndex = qs.parse('a[100]=b');
  187. assert.deepEqual(withMaxIndex, { a: { '100': 'b' } });
  188. ```
  189. This limit can be overridden by passing an `arrayLimit` option:
  190. ```javascript
  191. var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 });
  192. assert.deepEqual(withArrayLimit, { a: { '1': 'b' } });
  193. ```
  194. To disable array parsing entirely, set `parseArrays` to `false`.
  195. ```javascript
  196. var noParsingArrays = qs.parse('a[]=b', { parseArrays: false });
  197. assert.deepEqual(noParsingArrays, { a: { '0': 'b' } });
  198. ```
  199. If you mix notations, **qs** will merge the two items into an object:
  200. ```javascript
  201. var mixedNotation = qs.parse('a[0]=b&a[b]=c');
  202. assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } });
  203. ```
  204. You can also create arrays of objects:
  205. ```javascript
  206. var arraysOfObjects = qs.parse('a[][b]=c');
  207. assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] });
  208. ```
  209. Some people use comma to join array, **qs** can parse it:
  210. ```javascript
  211. var arraysOfObjects = qs.parse('a=b,c', { comma: true })
  212. assert.deepEqual(arraysOfObjects, { a: ['b', 'c'] })
  213. ```
  214. (_this cannot convert nested objects, such as `a={b:1},{c:d}`_)
  215. ### Stringifying
  216. [](#preventEval)
  217. ```javascript
  218. qs.stringify(object, [options]);
  219. ```
  220. When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect:
  221. ```javascript
  222. assert.equal(qs.stringify({ a: 'b' }), 'a=b');
  223. assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
  224. ```
  225. This encoding can be disabled by setting the `encode` option to `false`:
  226. ```javascript
  227. var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false });
  228. assert.equal(unencoded, 'a[b]=c');
  229. ```
  230. Encoding can be disabled for keys by setting the `encodeValuesOnly` option to `true`:
  231. ```javascript
  232. var encodedValues = qs.stringify(
  233. { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] },
  234. { encodeValuesOnly: true }
  235. );
  236. assert.equal(encodedValues,'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h');
  237. ```
  238. This encoding can also be replaced by a custom encoding method set as `encoder` option:
  239. ```javascript
  240. var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) {
  241. // Passed in values `a`, `b`, `c`
  242. return // Return encoded string
  243. }})
  244. ```
  245. _(Note: the `encoder` option does not apply if `encode` is `false`)_
  246. Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values:
  247. ```javascript
  248. var decoded = qs.parse('x=z', { decoder: function (str) {
  249. // Passed in values `x`, `z`
  250. return // Return decoded string
  251. }})
  252. ```
  253. You can encode keys and values using different logic by using the type argument provided to the encoder:
  254. ```javascript
  255. var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultEncoder, charset, type) {
  256. if (type === 'key') {
  257. return // Encoded key
  258. } else if (type === 'value') {
  259. return // Encoded value
  260. }
  261. }})
  262. ```
  263. The type argument is also provided to the decoder:
  264. ```javascript
  265. var decoded = qs.parse('x=z', { decoder: function (str, defaultEncoder, charset, type) {
  266. if (type === 'key') {
  267. return // Decoded key
  268. } else if (type === 'value') {
  269. return // Decoded value
  270. }
  271. }})
  272. ```
  273. Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage.
  274. When arrays are stringified, by default they are given explicit indices:
  275. ```javascript
  276. qs.stringify({ a: ['b', 'c', 'd'] });
  277. // 'a[0]=b&a[1]=c&a[2]=d'
  278. ```
  279. You may override this by setting the `indices` option to `false`:
  280. ```javascript
  281. qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false });
  282. // 'a=b&a=c&a=d'
  283. ```
  284. You may use the `arrayFormat` option to specify the format of the output array:
  285. ```javascript
  286. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
  287. // 'a[0]=b&a[1]=c'
  288. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
  289. // 'a[]=b&a[]=c'
  290. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
  291. // 'a=b&a=c'
  292. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' })
  293. // 'a=b,c'
  294. ```
  295. When objects are stringified, by default they use bracket notation:
  296. ```javascript
  297. qs.stringify({ a: { b: { c: 'd', e: 'f' } } });
  298. // 'a[b][c]=d&a[b][e]=f'
  299. ```
  300. You may override this to use dot notation by setting the `allowDots` option to `true`:
  301. ```javascript
  302. qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true });
  303. // 'a.b.c=d&a.b.e=f'
  304. ```
  305. Empty strings and null values will omit the value, but the equals sign (=) remains in place:
  306. ```javascript
  307. assert.equal(qs.stringify({ a: '' }), 'a=');
  308. ```
  309. Key with no values (such as an empty object or array) will return nothing:
  310. ```javascript
  311. assert.equal(qs.stringify({ a: [] }), '');
  312. assert.equal(qs.stringify({ a: {} }), '');
  313. assert.equal(qs.stringify({ a: [{}] }), '');
  314. assert.equal(qs.stringify({ a: { b: []} }), '');
  315. assert.equal(qs.stringify({ a: { b: {}} }), '');
  316. ```
  317. Properties that are set to `undefined` will be omitted entirely:
  318. ```javascript
  319. assert.equal(qs.stringify({ a: null, b: undefined }), 'a=');
  320. ```
  321. The query string may optionally be prepended with a question mark:
  322. ```javascript
  323. assert.equal(qs.stringify({ a: 'b', c: 'd' }, { addQueryPrefix: true }), '?a=b&c=d');
  324. ```
  325. The delimiter may be overridden with stringify as well:
  326. ```javascript
  327. assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
  328. ```
  329. If you only want to override the serialization of `Date` objects, you can provide a `serializeDate` option:
  330. ```javascript
  331. var date = new Date(7);
  332. assert.equal(qs.stringify({ a: date }), 'a=1970-01-01T00:00:00.007Z'.replace(/:/g, '%3A'));
  333. assert.equal(
  334. qs.stringify({ a: date }, { serializeDate: function (d) { return d.getTime(); } }),
  335. 'a=7'
  336. );
  337. ```
  338. You may use the `sort` option to affect the order of parameter keys:
  339. ```javascript
  340. function alphabeticalSort(a, b) {
  341. return a.localeCompare(b);
  342. }
  343. assert.equal(qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort: alphabeticalSort }), 'a=c&b=f&z=y');
  344. ```
  345. Finally, you can use the `filter` option to restrict which keys will be included in the stringified output.
  346. If you pass a function, it will be called for each key to obtain the replacement value. Otherwise, if you
  347. pass an array, it will be used to select properties and array indices for stringification:
  348. ```javascript
  349. function filterFunc(prefix, value) {
  350. if (prefix == 'b') {
  351. // Return an `undefined` value to omit a property.
  352. return;
  353. }
  354. if (prefix == 'e[f]') {
  355. return value.getTime();
  356. }
  357. if (prefix == 'e[g][0]') {
  358. return value * 2;
  359. }
  360. return value;
  361. }
  362. qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc });
  363. // 'a=b&c=d&e[f]=123&e[g][0]=4'
  364. qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] });
  365. // 'a=b&e=f'
  366. qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] });
  367. // 'a[0]=b&a[2]=d'
  368. ```
  369. ### Handling of `null` values
  370. By default, `null` values are treated like empty strings:
  371. ```javascript
  372. var withNull = qs.stringify({ a: null, b: '' });
  373. assert.equal(withNull, 'a=&b=');
  374. ```
  375. Parsing does not distinguish between parameters with and without equal signs. Both are converted to empty strings.
  376. ```javascript
  377. var equalsInsensitive = qs.parse('a&b=');
  378. assert.deepEqual(equalsInsensitive, { a: '', b: '' });
  379. ```
  380. To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null`
  381. values have no `=` sign:
  382. ```javascript
  383. var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true });
  384. assert.equal(strictNull, 'a&b=');
  385. ```
  386. To parse values without `=` back to `null` use the `strictNullHandling` flag:
  387. ```javascript
  388. var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true });
  389. assert.deepEqual(parsedStrictNull, { a: null, b: '' });
  390. ```
  391. To completely skip rendering keys with `null` values, use the `skipNulls` flag:
  392. ```javascript
  393. var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true });
  394. assert.equal(nullsSkipped, 'a=b');
  395. ```
  396. If you're communicating with legacy systems, you can switch to `iso-8859-1`
  397. using the `charset` option:
  398. ```javascript
  399. var iso = qs.stringify({ æ: 'æ' }, { charset: 'iso-8859-1' });
  400. assert.equal(iso, '%E6=%E6');
  401. ```
  402. Characters that don't exist in `iso-8859-1` will be converted to numeric
  403. entities, similar to what browsers do:
  404. ```javascript
  405. var numeric = qs.stringify({ a: '☺' }, { charset: 'iso-8859-1' });
  406. assert.equal(numeric, 'a=%26%239786%3B');
  407. ```
  408. You can use the `charsetSentinel` option to announce the character by
  409. including an `utf8=✓` parameter with the proper encoding if the checkmark,
  410. similar to what Ruby on Rails and others do when submitting forms.
  411. ```javascript
  412. var sentinel = qs.stringify({ a: '☺' }, { charsetSentinel: true });
  413. assert.equal(sentinel, 'utf8=%E2%9C%93&a=%E2%98%BA');
  414. var isoSentinel = qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'iso-8859-1' });
  415. assert.equal(isoSentinel, 'utf8=%26%2310003%3B&a=%E6');
  416. ```
  417. ### Dealing with special character sets
  418. By default the encoding and decoding of characters is done in `utf-8`,
  419. and `iso-8859-1` support is also built in via the `charset` parameter.
  420. If you wish to encode querystrings to a different character set (i.e.
  421. [Shift JIS](https://en.wikipedia.org/wiki/Shift_JIS)) you can use the
  422. [`qs-iconv`](https://github.com/martinheidegger/qs-iconv) library:
  423. ```javascript
  424. var encoder = require('qs-iconv/encoder')('shift_jis');
  425. var shiftJISEncoded = qs.stringify({ a: 'こんにちは!' }, { encoder: encoder });
  426. assert.equal(shiftJISEncoded, 'a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I');
  427. ```
  428. This also works for decoding of query strings:
  429. ```javascript
  430. var decoder = require('qs-iconv/decoder')('shift_jis');
  431. var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder });
  432. assert.deepEqual(obj, { a: 'こんにちは!' });
  433. ```
  434. ### RFC 3986 and RFC 1738 space encoding
  435. RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible.
  436. In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'.
  437. ```
  438. assert.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
  439. assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c');
  440. assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c');
  441. ```
  442. ## Security
  443. Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
  444. ## qs for enterprise
  445. Available as part of the Tidelift Subscription
  446. The maintainers of qs and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-qs?utm_source=npm-qs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
  447. [1]: https://npmjs.org/package/qs
  448. [2]: http://versionbadg.es/ljharb/qs.svg
  449. [3]: https://api.travis-ci.org/ljharb/qs.svg
  450. [4]: https://travis-ci.org/ljharb/qs
  451. [5]: https://david-dm.org/ljharb/qs.svg
  452. [6]: https://david-dm.org/ljharb/qs
  453. [7]: https://david-dm.org/ljharb/qs/dev-status.svg
  454. [8]: https://david-dm.org/ljharb/qs?type=dev
  455. [9]: https://ci.testling.com/ljharb/qs.png
  456. [10]: https://ci.testling.com/ljharb/qs
  457. [11]: https://nodei.co/npm/qs.png?downloads=true&stars=true
  458. [license-image]: http://img.shields.io/npm/l/qs.svg
  459. [license-url]: LICENSE
  460. [downloads-image]: http://img.shields.io/npm/dm/qs.svg
  461. [downloads-url]: http://npm-stat.com/charts.html?package=qs