# call-all-fns

> Wrap a set of functions in a single function that calls each

Latest version **1.0.1** (published 2017-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install call-all-fns
pnpm add call-all-fns
yarn add call-all-fns
bun add call-all-fns
```

## 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.1 |
| Published | 2017-09-18 |
| First published | 2016-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | call, all, functions, fns |

## Links

- npm: https://www.npmjs.com/package/call-all-fns
- Repository: https://github.com/bendrucker/call-all-fns
- Homepage: https://github.com/bendrucker/call-all-fns#readme
- Issues: https://github.com/bendrucker/call-all-fns/issues
- npm.io page: https://npm.io/package/call-all-fns

## Recent versions

- 1.0.1 (latest) — 2017-09-18
- 1.0.0 — 2016-03-03

## README

# call-all-fns [![Build Status](https://travis-ci.org/bendrucker/call-all-fns.svg?branch=master)](https://travis-ci.org/bendrucker/call-all-fns)

> Wrap a set of functions in a single function that calls each


## Install

```
$ npm install --save call-all-fns
```


## Usage

```js
var callAll = require('call-all-fns')

var all = callAll([
  function (value) {
    return value + 1
  },
  function (value) {
    return value + 2
  } 
])
all(1)
//=> [2, 3]
```

## API

#### `callAll(fns)` -> `function`

Returns a function that will pass all arguments to the `fns` and then return an array of results.

##### fns

*Required*  
Type: `array[function]` / `functions...`

An array of functions. Functions can also be provided as a variadic set of arguments.


## License

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

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