1.0.0 • Published 5 years ago

pipe-into v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Pipe Into

Simple implementation of the pipe pattern for Typescript.

Installation

npm i pipe-into

Usage

import { pipe } from "pipe-into";

const five = pipe(30)
    .into(v => v * 3)
    .into(v => v / 9)
    .into(v => v / 2)
    .val;

Building and Testing

npm test # If no error is thrown, the tests succeeded.