Compose promise-returning & async functions into a reusable pipeline
Installations
npm install p-pipe
Score
99.4
Supply Chain
82.8
Quality
75.5
Maintenance
100
Vulnerability
100
License
Developer
sindresorhus
Developer Guide
Module System
ESM
Min. Node Version
>=12
Typescript Support
No
Node Version
12.20.1
NPM Version
6.14.10
Statistics
122 Stars
23 Commits
16 Forks
6 Watching
1 Branches
6 Contributors
Updated on 13 Oct 2024
Bundle Size
351.00 B
Minified
250.00 B
Minified + Gzipped
Languages
TypeScript (50.76%)
JavaScript (49.24%)
Total Downloads
Cumulative downloads
Total Downloads
609,942,135
Last day
-6.2%
401,197
Compared to previous day
Last week
1.9%
2,376,742
Compared to previous week
Last month
13.3%
9,760,429
Compared to previous month
Last year
-11.9%
106,556,244
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
p-pipe
Compose promise-returning & async functions into a reusable pipeline
Install
$ npm install p-pipe
Usage
1import pPipe from 'p-pipe'; 2 3const addUnicorn = async string => `${string} Unicorn`; 4const addRainbow = async string => `${string} Rainbow`; 5 6const pipeline = pPipe(addUnicorn, addRainbow); 7 8console.log(await pipeline('❤️')); 9//=> '❤️ 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…
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
- Info: security policy file detected: .github/security.md:1
- Info: Found linked content: .github/security.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/security.md:1
- Info: Found text in security policy: .github/security.md:1
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 5/23 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/p-pipe/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/p-pipe/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:21
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 5 are checked with a SAST tool
Score
4.2
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More