# @f/upon

> Run a function upon some arguments

Latest version **1.0.1** (published 2016-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/upon
pnpm add @f/upon
yarn add @f/upon
bun add @f/upon
```

## 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 | 2016-02-09 |
| First published | 2016-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/upon
- Repository: https://github.com/micro-js/upon
- Homepage: https://github.com/micro-js/upon#readme
- Issues: https://github.com/micro-js/upon/issues
- npm.io page: https://npm.io/package/@f/upon

## Recent versions

- 1.0.1 (latest) — 2016-02-09
- 1.0.0 — 2016-02-08

## README

# upon

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Run a function upon some arguments

## Installation

    $ npm install @f/upon

## Usage

```js
var upon = require('@f/upon')

upon(4)(isEven) === true
map(upon(4), [isEven, isOdd]) === [true, false]
```

This is very useful as a primitive for applying a list of functions to a value or set of values. It's also nice generally whenever you know what you want to process before you know how you want to process it.

## API

### upon(...args)(fn)

- `args` - An arbitrary argument list to be passed to `fn`.
- `fn` - The function that you want to apply to `args`.

**Returns:** A function that accepts `fn` and passes `args` to it.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/upon.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/upon
[git-image]: https://img.shields.io/github/tag/micro-js/upon.svg
[git-url]: https://github.com/micro-js/upon
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/upon.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/upon

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