# min-qs

> Mini Querystring Parse and Stringify Library

Latest version **1.4.0** (published 2018-09-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install min-qs
pnpm add min-qs
yarn add min-qs
bun add min-qs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2018-09-04 |
| First published | 2015-03-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 30.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | chunpu |
| Maintainers | ftft1885 |
| Keywords | querystring, min |

## Links

- npm: https://www.npmjs.com/package/min-qs
- Repository: https://github.com/chunpu/min-qs
- Issues: https://github.com/chunpu/min-qs/issues
- npm.io page: https://npm.io/package/min-qs

## Dependencies (1)

- [min-util](https://npm.io/package/min-util.md) ^3.3.1

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2018-09-04
- 1.3.0 — 2017-01-13
- 1.2.0 — 2016-10-11
- 1.1.0 — 2016-03-09
- 1.0.6 — 2015-07-01
- 1.0.5 — 2015-03-20
- 1.0.4 — 2015-03-19
- 1.0.3 — 2015-03-09
- 1.0.2 — 2015-03-09
- 1.0.1 — 2015-03-09
- 1.0.0 — 2015-03-09

## README

min-qs
===

[![Build status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
[![Dependency Status][david-image]][david-url]

[npm-image]: https://img.shields.io/npm/v/min-qs.svg?style=flat-square
[npm-url]: https://npmjs.org/package/min-qs
[downloads-image]: http://img.shields.io/npm/dm/min-qs.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/min-qs
[david-image]: http://img.shields.io/david/chunpu/min-qs.svg?style=flat-square
[david-url]: https://david-dm.org/chunpu/min-qs


Mini Querystring Parse and Stringify Library

Installation
---

```sh
npm i min-qs
```

Usage
---

just like querystring in node.js

```js
var qs = require('min-qs')
qs.parse('foo=bar')
qs.stringify({foo: 'bar'})
```

No nested or array support, can also custom sep and eq

```js
qs.parse('a:1;b:2', ';', ':')
```

Options
---

`keepRaw` if false will not do any encode or decode, default is true

```js
var ret = qs.stringify({
	'&=': ' '
}, {keepRaw: true})
assert.deepEqual(ret, '&== ')
```

`sort` true or sort function

```js
var ret = qs.stringify({
	c: 3,
	a: 1,
	b: 2,
	aa: 11
}, {
	sort: true
})
assert.deepEqual(ret, 'a=1&aa=11&b=2&c=3')
```

`ignoreValues` ignore some values, default is `[undefined]`

```js
var ret = qs.stringify({
	'0': 0,
	'empty': '',
	'NaN': NaN,
	'null': null,
	'undefined': undefined,
	'false': false
}, {
	sort: true,
	ignoreValues: [undefined, null]
})

assert.deepEqual(ret, '0=0&NaN=&empty=&false=false')
```

License
---

[![License][license-image]][license-url]

[travis-image]: https://img.shields.io/travis/chunpu/min-qs.svg?style=flat-square
[travis-url]: https://travis-ci.org/chunpu/min-qs
[license-image]: http://img.shields.io/npm/l/min-qs.svg?style=flat-square
[license-url]: #

---
_Source: https://npm.io/package/min-qs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
