A babel parser and plugin implementing the opipe operator, to easily pipe an object.
const _ = ;const ten = 1234 :| _ // [1,3] :| _ // [1,9] :| _; // 10
Installation
npm install --save-dev babel-plugin-transform-opipe
Opipe operator
The opipe operator is defined as following:
a :| ≡
It's handy to quickly and easily pipe objects through method-like-functions that accept their logical this
as the first parameter.
Quickstart
Install the babel suite, enable this plugin, then use babel to transpile your code The easiest way to get started, is the following:
npm install --save babel-plugin-transform-opipe babel-metanpx babel-node --plugins='babel-plugin-transform-opipe' your_opipeful_filejs