An open API service indexing awesome lists of open source software.

https://github.com/component/querystring

Simple key / value pair query-string parser
https://github.com/component/querystring

Last synced: 7 months ago
JSON representation

Simple key / value pair query-string parser

Awesome Lists containing this project

README

          

# querystring

Simple key / value pair query-string parser and formatter.

## Installation

```
$ component install component/querystring
```

## API

### .parse(string)

Parse the given query `string`:

```js
var query = require('querystring');
query.parse('name=tobi&species=ferret');
// => { name: 'tobi', species: 'ferret' }
```

### .stringify(object)

Stringify the given `object`:

```js
var query = require('querystring');
query.stringify({ name: 'tobi', species: 'ferret' });
// => "name=tobi&species=ferret"
```

## License

MIT