New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

perabo

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perabo

Accepts any number of functions as parameters, and pipes provided arguments through those functions in sequence.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Perabo

Description

Takes any number of functions as arguments and returns a new function that will pass its argument to the first function, then pass the result to the second, continuing this process until all functions have been called and a final value is returned.

Installation

npm install perabo --save

Usage

var perabo = require('perabo');

perabo(foo, bar)(1, 2, 3)

// would be the same as
bar(foo(1, 2, 3));

// similarly
perabo(foo, bar, baz)(1, 2, 3)

// would be the same as
baz(bar(foo(1, 2, 3)));

FAQs

Package last updated on 22 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts