0.2.0 • Published 7 years ago

ponypipe v0.2.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
7 years ago

ponypipe

Ponyfill for the pipeline operator ('Hello world!' |> console.log)

Installation and Usage

npm install ponypipe

pipe(sth, ...) syntax

import pipe from 'ponypipe'
# or
const { pipe } = require('ponypipe')

pipe('Hello world', x => x + '!', console.log)

sth.pipe(...) syntax

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.

0.2.0

7 years ago

0.1.0

7 years ago