bind-operator
Transpiler for http://wiki.ecmascript.org/doku.php?id=strawman:bind_operator
Example
You could write code like:
; 1 2 3 3 2 1::::;// => [1, 2, 3]
This gets transformed into:
; unique;// => [1, 2, 3]
You can also write code like:
var clickButton = button::click;
which gets transformed to:
var clickButton = click;
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