Ponyfill for the pipeline operator ('Hello world!' |> console.log
)
npm install ponypipe
import pipe from 'ponypipe'
# or
const { pipe } = require('ponypipe')
pipe('Hello world', x => x + '!', console.log)
import { install } from 'ponypipe'
# or
const { install } = require('ponypipe')
install()
'Hello world'.pipe(x => x + '!', console.log)
Installation extends Object.prototype
- if you don't want this to happen, use the pipe(sth, ...)
syntax.