Gathering detailed insights and metrics for @0xbutterfield/p-props
Gathering detailed insights and metrics for @0xbutterfield/p-props
Gathering detailed insights and metrics for @0xbutterfield/p-props
Gathering detailed insights and metrics for @0xbutterfield/p-props
Like `Promise.all()` but for `Map` and `Object`
npm install @0xbutterfield/p-props
Typescript
Module System
Min. Node Version
Node Version
NPM Version
64.5
Supply Chain
81.4
Quality
75.1
Maintenance
100
Vulnerability
100
License
TypeScript (57.11%)
JavaScript (42.89%)
Total Downloads
639
Last Day
2
Last Week
2
Last Month
17
Last Year
223
MIT License
195 Stars
30 Commits
12 Forks
6 Watchers
1 Branches
12 Contributors
Updated on Jan 02, 2025
Minified
Minified + Gzipped
Latest Version
5.0.1
Package Id
@0xbutterfield/p-props@5.0.1
Unpacked Size
4.67 kB
Size
2.29 kB
File Count
5
NPM Version
8.11.0
Node Version
16.15.1
Published on
Jun 16, 2023
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
-66.7%
2
Compared to previous week
Last Month
-52.8%
17
Compared to previous month
Last Year
-46.4%
223
Compared to previous year
Like
Promise.all()
but forMap
andObject
Useful when you need to run multiple promises concurrently and keep track of the fulfilled values by name.
$ npm install @0xbutterfield/p-props
1import pProps from 'p-props'; 2import got from 'got'; 3 4const fetch = async url => { 5 const {body} = await got(url); 6 return body; 7}; 8 9const sites = { 10 ava: fetch('https://avajs.dev'), 11 todomvc: fetch('https://todomvc.com'), 12 github: fetch('https://github.com'), 13 foo: 'bar' 14}; 15 16console.log(await pProps(sites)); 17/* 18{ 19 ava: '<!doctype …', 20 todomvc: '<!doctype …', 21 github: '<!doctype …', 22 foo: 'bar' 23} 24*/
Returns a Promise
that is fulfilled when all promises in map
are fulfilled, or rejects if any of the promises reject. The fulfilled value is the same as map
, but with a fulfilled version of each entry value.
Type: Map | object
Resolves entry values that are promises. Other values are passed through.
Type: object
See the p-map
options.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 11/30 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-05
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