# concat-object

> Concatenate object property values into arrays

Latest version **2.0.0** (published 2017-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install concat-object
pnpm add concat-object
yarn add concat-object
bun add concat-object
```

## 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.0 |
| Published | 2017-07-05 |
| First published | 2016-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Kevin Martensson |
| Maintainers | kevva |
| Keywords | array, assign, concat, extend, merge, object, properties |

## Links

- npm: https://www.npmjs.com/package/concat-object
- Repository: https://github.com/kevva/concat-object
- Homepage: https://github.com/kevva/concat-object#readme
- Issues: https://github.com/kevva/concat-object/issues
- npm.io page: https://npm.io/package/concat-object

## Recent versions

- 2.0.0 (latest) — 2017-07-05
- 1.0.0 — 2016-02-10

## README

# concat-object [![Build Status](https://travis-ci.org/kevva/concat-object.svg?branch=master)](https://travis-ci.org/kevva/concat-object)

> Concatenate object property values into arrays

Useful for creating form data objects that could easily be turned into query strings.


## Install

```
$ npm install concat-object
```


## Usage

```js
const querystring = require('querystring');
const concatObject = require('concat-object');

concatObject({a: 'foo'}, {a: 'bar', b: 'unicorn'}, {b: ['foo']});
//=> {a: ['foo', 'bar'], b: ['unicorn', ['foo']]}

querystring.stringify(concatObject({a: 'foo'}, {a: 'bar'}));
//=> 'a=foo&a=bar'
```


## API

### concatObject(object, [object, ...])

#### object

Type: `Object`

Assigns properties of `object` into arrays in a new object.


## License

MIT © [Kevin Martensson](http://github.com/kevva)

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