Skip to content

samyilias/pipify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipify

Function calls in a readable manner

Install

$ npm install pipify

Usage

import pipe from 'pipify';

const subString = (s) => s.substr(0, 5);
const splitStringToArray = (s) => s.split("");
const reverseArrayOfStrings = (arr) => arr.reverse();
const join =(s)=> s.join("");

const pipeline = pipe([
    subString,
    splitStringToArray,
    reverseArrayOfStrings,
    join
    ]);

pipeline('hello world')
//=> "olleh"
---

About

Function calls in a readable manner

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published