ponypipe

0.2.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i ponypipe

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

2.08 kB

Total Files

4

Last publish

Collaborators

  • lew21