p-pipe

WebJar for p-pipe

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

p-pipe
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

p-pipe
WebJar for p-pipe
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/p-pipe

Download p-pipe

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/p-pipe/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>p-pipe</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/p-pipe/
implementation 'org.webjars.npm:p-pipe:1.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/p-pipe/
implementation ("org.webjars.npm:p-pipe:1.2.0")
'org.webjars.npm:p-pipe:jar:1.2.0'
<dependency org="org.webjars.npm" name="p-pipe" rev="1.2.0">
  <artifact name="p-pipe" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='p-pipe', version='1.2.0')
)
libraryDependencies += "org.webjars.npm" % "p-pipe" % "1.2.0"
[org.webjars.npm/p-pipe "1.2.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

p-pipe

Compose promise-returning & async functions into a reusable pipeline

Install

$ npm install p-pipe

Usage

import pPipe from 'p-pipe';

const addUnicorn = async string => `${string} Unicorn`;
const addRainbow = async string => `${string} Rainbow`;

const pipeline = pPipe(addUnicorn, addRainbow);

console.log(await pipeline('❤️'));
//=> '❤️ Unicorn Rainbow'

API

pPipe(input…)

The input functions are applied from left to right.

input

Type: Function

Expected to return a Promise or any value.

Related

  • p-each-series - Iterate over promises serially
  • p-series - Run promise-returning & async functions in series
  • p-waterfall - Run promise-returning & async functions in series, each passing its result to the next
  • More…

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
1.2.0