Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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. You may also use `allowSparse` option to parse sparse arrays:
  177. ```javascript
  178. var sparseArray = qs.parse('a[1]=2&a[3]=5', { allowSparse: true });
  179. assert.deepEqual(sparseArray, { a: [, '2', , '5'] });
  180. ```
  181. Note that an empty string is also a value, and will be preserved:
  182. ```javascript
  183. var withEmptyString = qs.parse('a[]=&a[]=b');
  184. assert.deepEqual(withEmptyString, { a: ['', 'b'] });
  185. var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c');
  186. assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] });
  187. ```
  188. **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
  189. 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.
  190. ```javascript
  191. var withMaxIndex = qs.parse('a[100]=b');
  192. assert.deepEqual(withMaxIndex, { a: { '100': 'b' } });
  193. ```
  194. This limit can be overridden by passing an `arrayLimit` option:
  195. ```javascript
  196. var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 });
  197. assert.deepEqual(withArrayLimit, { a: { '1': 'b' } });
  198. ```
  199. To disable array parsing entirely, set `parseArrays` to `false`.
  200. ```javascript
  201. var noParsingArrays = qs.parse('a[]=b', { parseArrays: false });
  202. assert.deepEqual(noParsingArrays, { a: { '0': 'b' } });
  203. ```
  204. If you mix notations, **qs** will merge the two items into an object:
  205. ```javascript
  206. var mixedNotation = qs.parse('a[0]=b&a[b]=c');
  207. assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } });
  208. ```
  209. You can also create arrays of objects:
  210. ```javascript
  211. var arraysOfObjects = qs.parse('a[][b]=c');
  212. assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] });
  213. ```
  214. Some people use comma to join array, **qs** can parse it:
  215. ```javascript
  216. var arraysOfObjects = qs.parse('a=b,c', { comma: true })
  217. assert.deepEqual(arraysOfObjects, { a: ['b', 'c'] })
  218. ```
  219. (_this cannot convert nested objects, such as `a={b:1},{c:d}`_)
  220. ### Stringifying
  221. [](#preventEval)
  222. ```javascript
  223. qs.stringify(object, [options]);
  224. ```
  225. When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect:
  226. ```javascript
  227. assert.equal(qs.stringify({ a: 'b' }), 'a=b');
  228. assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
  229. ```
  230. This encoding can be disabled by setting the `encode` option to `false`:
  231. ```javascript
  232. var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false });
  233. assert.equal(unencoded, 'a[b]=c');
  234. ```
  235. Encoding can be disabled for keys by setting the `encodeValuesOnly` option to `true`:
  236. ```javascript
  237. var encodedValues = qs.stringify(
  238. { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] },
  239. { encodeValuesOnly: true }
  240. );
  241. assert.equal(encodedValues,'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h');
  242. ```
  243. This encoding can also be replaced by a custom encoding method set as `encoder` option:
  244. ```javascript
  245. var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) {
  246. // Passed in values `a`, `b`, `c`
  247. return // Return encoded string
  248. }})
  249. ```
  250. _(Note: the `encoder` option does not apply if `encode` is `false`)_
  251. Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values:
  252. ```javascript
  253. var decoded = qs.parse('x=z', { decoder: function (str) {
  254. // Passed in values `x`, `z`
  255. return // Return decoded string
  256. }})
  257. ```
  258. You can encode keys and values using different logic by using the type argument provided to the encoder:
  259. ```javascript
  260. var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultEncoder, charset, type) {
  261. if (type === 'key') {
  262. return // Encoded key
  263. } else if (type === 'value') {
  264. return // Encoded value
  265. }
  266. }})
  267. ```
  268. The type argument is also provided to the decoder:
  269. ```javascript
  270. var decoded = qs.parse('x=z', { decoder: function (str, defaultDecoder, charset, type) {
  271. if (type === 'key') {
  272. return // Decoded key
  273. } else if (type === 'value') {
  274. return // Decoded value
  275. }
  276. }})
  277. ```
  278. 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.
  279. When arrays are stringified, by default they are given explicit indices:
  280. ```javascript
  281. qs.stringify({ a: ['b', 'c', 'd'] });
  282. // 'a[0]=b&a[1]=c&a[2]=d'
  283. ```
  284. You may override this by setting the `indices` option to `false`:
  285. ```javascript
  286. qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false });
  287. // 'a=b&a=c&a=d'
  288. ```
  289. You may use the `arrayFormat` option to specify the format of the output array:
  290. ```javascript
  291. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
  292. // 'a[0]=b&a[1]=c'
  293. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
  294. // 'a[]=b&a[]=c'
  295. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
  296. // 'a=b&a=c'
  297. qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' })
  298. // 'a=b,c'
  299. ```
  300. When objects are stringified, by default they use bracket notation:
  301. ```javascript
  302. qs.stringify({ a: { b: { c: 'd', e: 'f' } } });
  303. // 'a[b][c]=d&a[b][e]=f'
  304. ```
  305. You may override this to use dot notation by setting the `allowDots` option to `true`:
  306. ```javascript
  307. qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true });
  308. // 'a.b.c=d&a.b.e=f'
  309. ```
  310. Empty strings and null values will omit the value, but the equals sign (=) remains in place:
  311. ```javascript
  312. assert.equal(qs.stringify({ a: '' }), 'a=');
  313. ```
  314. Key with no values (such as an empty object or array) will return nothing:
  315. ```javascript
  316. assert.equal(qs.stringify({ a: [] }), '');
  317. assert.equal(qs.stringify({ a: {} }), '');
  318. assert.equal(qs.stringify({ a: [{}] }), '');
  319. assert.equal(qs.stringify({ a: { b: []} }), '');
  320. assert.equal(qs.stringify({ a: { b: {}} }), '');
  321. ```
  322. Properties that are set to `undefined` will be omitted entirely:
  323. ```javascript
  324. assert.equal(qs.stringify({ a: null, b: undefined }), 'a=');
  325. ```
  326. The query string may optionally be prepended with a question mark:
  327. ```javascript
  328. assert.equal(qs.stringify({ a: 'b', c: 'd' }, { addQueryPrefix: true }), '?a=b&c=d');
  329. ```
  330. The delimiter may be overridden with stringify as well:
  331. ```javascript
  332. assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
  333. ```
  334. If you only want to override the serialization of `Date` objects, you can provide a `serializeDate` option:
  335. ```javascript
  336. var date = new Date(7);
  337. assert.equal(qs.stringify({ a: date }), 'a=1970-01-01T00:00:00.007Z'.replace(/:/g, '%3A'));
  338. assert.equal(
  339. qs.stringify({ a: date }, { serializeDate: function (d) { return d.getTime(); } }),
  340. 'a=7'
  341. );
  342. ```
  343. You may use the `sort` option to affect the order of parameter keys:
  344. ```javascript
  345. function alphabeticalSort(a, b) {
  346. return a.localeCompare(b);
  347. }
  348. assert.equal(qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort: alphabeticalSort }), 'a=c&b=f&z=y');
  349. ```
  350. Finally, you can use the `filter` option to restrict which keys will be included in the stringified output.
  351. If you pass a function, it will be called for each key to obtain the replacement value. Otherwise, if you
  352. pass an array, it will be used to select properties and array indices for stringification:
  353. ```javascript
  354. function filterFunc(prefix, value) {
  355. if (prefix == 'b') {
  356. // Return an `undefined` value to omit a property.
  357. return;
  358. }
  359. if (prefix == 'e[f]') {
  360. return value.getTime();
  361. }
  362. if (prefix == 'e[g][0]') {
  363. return value * 2;
  364. }
  365. return value;
  366. }
  367. qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc });
  368. // 'a=b&c=d&e[f]=123&e[g][0]=4'
  369. qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] });
  370. // 'a=b&e=f'
  371. qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] });
  372. // 'a[0]=b&a[2]=d'
  373. ```
  374. ### Handling of `null` values
  375. By default, `null` values are treated like empty strings:
  376. ```javascript
  377. var withNull = qs.stringify({ a: null, b: '' });
  378. assert.equal(withNull, 'a=&b=');
  379. ```
  380. Parsing does not distinguish between parameters with and without equal signs. Both are converted to empty strings.
  381. ```javascript
  382. var equalsInsensitive = qs.parse('a&b=');
  383. assert.deepEqual(equalsInsensitive, { a: '', b: '' });
  384. ```
  385. To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null`
  386. values have no `=` sign:
  387. ```javascript
  388. var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true });
  389. assert.equal(strictNull, 'a&b=');
  390. ```
  391. To parse values without `=` back to `null` use the `strictNullHandling` flag:
  392. ```javascript
  393. var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true });
  394. assert.deepEqual(parsedStrictNull, { a: null, b: '' });
  395. ```
  396. To completely skip rendering keys with `null` values, use the `skipNulls` flag:
  397. ```javascript
  398. var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true });
  399. assert.equal(nullsSkipped, 'a=b');
  400. ```
  401. If you're communicating with legacy systems, you can switch to `iso-8859-1`
  402. using the `charset` option:
  403. ```javascript
  404. var iso = qs.stringify({ æ: 'æ' }, { charset: 'iso-8859-1' });
  405. assert.equal(iso, '%E6=%E6');
  406. ```
  407. Characters that don't exist in `iso-8859-1` will be converted to numeric
  408. entities, similar to what browsers do:
  409. ```javascript
  410. var numeric = qs.stringify({ a: '☺' }, { charset: 'iso-8859-1' });
  411. assert.equal(numeric, 'a=%26%239786%3B');
  412. ```
  413. You can use the `charsetSentinel` option to announce the character by
  414. including an `utf8=✓` parameter with the proper encoding if the checkmark,
  415. similar to what Ruby on Rails and others do when submitting forms.
  416. ```javascript
  417. var sentinel = qs.stringify({ a: '☺' }, { charsetSentinel: true });
  418. assert.equal(sentinel, 'utf8=%E2%9C%93&a=%E2%98%BA');
  419. var isoSentinel = qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'iso-8859-1' });
  420. assert.equal(isoSentinel, 'utf8=%26%2310003%3B&a=%E6');
  421. ```
  422. ### Dealing with special character sets
  423. By default the encoding and decoding of characters is done in `utf-8`,
  424. and `iso-8859-1` support is also built in via the `charset` parameter.
  425. If you wish to encode querystrings to a different character set (i.e.
  426. [Shift JIS](https://en.wikipedia.org/wiki/Shift_JIS)) you can use the
  427. [`qs-iconv`](https://github.com/martinheidegger/qs-iconv) library:
  428. ```javascript
  429. var encoder = require('qs-iconv/encoder')('shift_jis');
  430. var shiftJISEncoded = qs.stringify({ a: 'こんにちは!' }, { encoder: encoder });
  431. assert.equal(shiftJISEncoded, 'a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I');
  432. ```
  433. This also works for decoding of query strings:
  434. ```javascript
  435. var decoder = require('qs-iconv/decoder')('shift_jis');
  436. var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder });
  437. assert.deepEqual(obj, { a: 'こんにちは!' });
  438. ```
  439. ### RFC 3986 and RFC 1738 space encoding
  440. RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible.
  441. In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'.
  442. ```
  443. assert.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
  444. assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c');
  445. assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c');
  446. ```
  447. ## Security
  448. Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
  449. ## qs for enterprise
  450. Available as part of the Tidelift Subscription
  451. 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)
  452. [1]: https://npmjs.org/package/qs
  453. [2]: http://versionbadg.es/ljharb/qs.svg
  454. [3]: https://api.travis-ci.org/ljharb/qs.svg
  455. [4]: https://travis-ci.org/ljharb/qs
  456. [5]: https://david-dm.org/ljharb/qs.svg
  457. [6]: https://david-dm.org/ljharb/qs
  458. [7]: https://david-dm.org/ljharb/qs/dev-status.svg
  459. [8]: https://david-dm.org/ljharb/qs?type=dev
  460. [9]: https://ci.testling.com/ljharb/qs.png
  461. [10]: https://ci.testling.com/ljharb/qs
  462. [11]: https://nodei.co/npm/qs.png?downloads=true&stars=true
  463. [license-image]: http://img.shields.io/npm/l/qs.svg
  464. [license-url]: LICENSE
  465. [downloads-image]: http://img.shields.io/npm/dm/qs.svg
  466. [downloads-url]: http://npm-stat.com/charts.html?package=qs