# query-string-flatten

> Create a query string with flattened object syntax

Latest version **1.0.0** (published 2015-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install query-string-flatten
pnpm add query-string-flatten
yarn add query-string-flatten
bun add query-string-flatten
```

## 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.0.0 |
| Published | 2015-11-06 |
| First published | 2015-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | query, string, querystring, query-string, flat, object, brackets |

## Links

- npm: https://www.npmjs.com/package/query-string-flatten
- Repository: https://github.com/bendrucker/query-string-flatten
- Homepage: https://github.com/bendrucker/query-string-flatten#readme
- Issues: https://github.com/bendrucker/query-string-flatten/issues
- npm.io page: https://npm.io/package/query-string-flatten

## Dependencies (3)

- [obj-query](https://npm.io/package/obj-query.md) ~1.0.0
- [value-pipe](https://npm.io/package/value-pipe.md) ~1.0.0
- [query-string](https://npm.io/package/query-string.md) ~3.0.0

## 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.0.0 (latest) — 2015-11-06

## README

# query-string-flatten [![Build Status](https://travis-ci.org/bendrucker/query-string-flatten.svg?branch=master)](https://travis-ci.org/bendrucker/query-string-flatten)

> Create a query string with flattened object syntax


## Install

```
$ npm install --save query-string-flatten
```


## Usage

```js
var query = require('query-string-flatten')

query({foo: {bar: 1}})
//=> foo%5Bbar%5D%3D1
```

## API

#### `query(obj)` -> `string`

Returns a URL-encoded query string

##### obj

*Required*  
Type: `object`

An object containing key/value pairs for the query string. This object can have nested objects up to 1 level deep.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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