# bind-operator

> Transpiler for http://wiki.ecmascript.org/doku.php?id=strawman:bind_operator

Latest version **1.0.0** (published 2014-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install bind-operator
pnpm add bind-operator
yarn add bind-operator
bun add bind-operator
```

Provides the command `bind-operator`.

## 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.0 |
| Published | 2014-09-07 |
| First published | 2014-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ForbesLindesay |
| Maintainers | forbeslindesay |

## Links

- npm: https://www.npmjs.com/package/bind-operator
- Repository: https://github.com/ForbesLindesay/bind-operator
- Issues: https://github.com/ForbesLindesay/bind-operator/issues
- npm.io page: https://npm.io/package/bind-operator

## Dependencies (1)

- [acorn-bind-operator](https://npm.io/package/acorn-bind-operator.md) ^0.7.1

## Recent versions

- 1.0.0 (latest) — 2014-09-07
- 0.0.0 — 2014-09-07

## README

# bind-operator

Transpiler for http://wiki.ecmascript.org/doku.php?id=strawman:bind_operator

[![Build Status](https://img.shields.io/travis/ForbesLindesay/bind-operator/master.svg)](https://travis-ci.org/ForbesLindesay/bind-operator)
[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/bind-operator.svg)](https://gemnasium.com/ForbesLindesay/bind-operator)
[![NPM version](https://img.shields.io/npm/v/bind-operator.svg)](https://www.npmjs.org/package/bind-operator)

## Example

You could write code like:

```js
import {unique, flatten} from "oonderscore";

[1, 2, 3, [3, 2], [1]]::flatten()::unique();
// => [1, 2, 3]
```

This gets transformed into:

```js
import {unique, flatten} from "oonderscore";

unique.call(flatten.call([1, 2, 3, [3, 2], [1]]));
// => [1, 2, 3]
```

You can also write code like:

```js
var clickButton = button::click;
```

which gets transformed to:

```js
var clickButton = click.bind(button);
```

## Installation

    npm install bind-operator

or

    npm install --global bind-operator

## Usage

Via the command line:

```
bind-operator input.js output.js
bind-operator < input.js > output.js
```

Via browserify:

Just specify the transform name as `bind-operator`.

## License

  MIT

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