p-pipe

WebJar for p-pipe

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

p-pipe
Последняя версия

Последняя версия

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

p-pipe
WebJar for p-pipe
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать p-pipe

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.2.0