# paramer

> A params helper

Latest version **1.1.0** (published 2013-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install paramer
pnpm add paramer
yarn add paramer
bun add paramer
```

## 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.1.0 |
| Published | 2013-09-30 |
| First published | 2013-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shallker |
| Maintainers | shallker-wang |
| Keywords | paramer |

## Links

- npm: https://www.npmjs.com/package/paramer
- Repository: https://github.com/shallker/paramer
- Issues: https://github.com/shallker/paramer/issues
- npm.io page: https://npm.io/package/paramer

## Recent versions

- 1.1.0 (latest) — 2013-09-30
- 1.0.0 — 2013-09-15

## README

# paramer

  A params helper


## Installation

  Install with [component(1)](http://component.io):

    $ component install shallker/paramer


## API
#### Paramer.parse(String params)
#### Paramer.stringify(Object params)

#### paramer.set(String key, String value)
#### paramer.del(String key)
#### paramer.toArray()
#### paramer.build()
#### paramer.clean()


## Test
```javascript
var test = new Paramer;
f(test.set)
f(test.del)
f(test.build)
f(test.clean)
f(test.toArray)
f(Paramer.parse)
f(Paramer.stringify)

ok(test.set('limit', 10))
ok(test.set('sort', 'id'))
mc(test.toArray(), ['limit=10', 'sort=id'])
eq(test.build(), 'limit=10&sort=id')
ok(test.clean())
eq(test.build(), '')

eq(Paramer.stringify({limit: 6, sort: 'uid'}), 'limit=6&sort=uid')
mc(Paramer.parse('limit=3&sort=id'), {limit: '3', sort: 'id'})
```

## Todo
- build array params recursively

## License

  MIT

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