# format-params

> a simple way to format params for an http request

Latest version **2.0.1** (published 2017-07-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install format-params
pnpm add format-params
yarn add format-params
bun add format-params
```

## 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 | 2.0.1 |
| Published | 2017-07-20 |
| First published | 2017-07-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | @JoaquimSerafim |
| Maintainers | quim |
| Keywords | http, params, request |

## Links

- npm: https://www.npmjs.com/package/format-params
- Repository: https://github.com/joaquimserafim/format-params
- Homepage: https://github.com/joaquimserafim/format-params#readme
- Issues: https://github.com/joaquimserafim/format-params/issues
- npm.io page: https://npm.io/package/format-params

## Dependencies (2)

- [is.object](https://npm.io/package/is.object.md) ^1.0.0
- [object.size](https://npm.io/package/object.size.md) ^1.0.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2017-07-20
- 2.0.0 — 2017-07-18
- 1.0.0 — 2017-07-14
- 0.0.0 — 2017-07-14

## README

# format-params

a simple way to format params for an http request

----
<a href="https://nodei.co/npm/format-params/"><img src="https://nodei.co/npm/format-params.png?downloads=true"></a>

[![Build Status](https://travis-ci.org/joaquimserafim/format-params.svg?branch=master)](https://travis-ci.org/joaquimserafim/format-params)[![Coverage Status](https://coveralls.io/repos/github/joaquimserafim/format-params/badge.svg)](https://coveralls.io/github/joaquimserafim/format-params)[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg?style=flat-square)](https://github.com/joaquimserafim/format-params/blob/master/LICENSE)[![NodeJS](https://img.shields.io/badge/node-6.x.x-brightgreen.svg?style=flat-square)](https://github.com/joaquimserafim/format-params/blob/master/package.json#L40)

[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)


### api
`const formatParams = require('format-params)`


### example

```js
formatParams('/id', { id: 123 })
// should return /123

formatParams('/resource/id/child/nameParent', { id: 123,  nameParent: 'Roy'})
// should return /resource/123/child/Roy

```


#### ISC License (ISC)

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