p-map
npmv7.0.7TypeScriptMap over promises concurrently
Safe to adopt
Yes — p-map scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 13 days ago. 5 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 13 days ago. 5 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 21 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding p-map to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=18
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the p-map README.
import pMap from 'p-map';
import got from 'got';
const sites = [
getWebsiteFromUsername('sindresorhus'), //=> Promise
'https://avajs.dev',
'https://github.com'
];
const mapper = async site => {
const {requestUrl} = await got.head(site);
return requestUrl;
};
p-map vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| p-mapthis page | 0 | 1 | MIT | 13 days ago |
| p-locate | 216.9M | 1 | MIT | 1 day ago |
| p-limit | 293.1M | 5 | MIT | 1 day ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| await-lock | 0 | 1 | MIT | 1 day ago |
| es-get-iterator | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by p-map v7.0.7. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (8)
Used by
Popular packages that depend on p-map.
Relationship graph
Dependencies (left) and dependents (right) of p-map.
Frequently installed together
create a pipeline of streams using Minipass
the most correct and second fastest glob implementation in JavaScript
Standard Subresource Integrity library -- parses, serializes, generates, and verifies integrity metadata according to the SRI spec.
filesystem utilities for the npm cli
fs read and write streams based on minipass
A Minipass stream that collects all the data into a single chunk
Release history
5 releases in the last two years, typically about 196 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 7.0.7latest | 13 days ago | 21 KB | MIT |
| 7.0.6 | 1 month ago | 21 KB | MIT |
| 7.0.5 | 2 months ago | 21 KB | MIT |
| 7.0.4 | 10 months ago | 21 KB | MIT |
| 7.0.3 | 1 year ago | 21 KB | MIT |
| 7.0.2 | 2 years ago | 20 KB | MIT |
| 7.0.1 | 2 years ago | 20 KB | MIT |
| 7.0.0 | 2 years ago | 20 KB | MIT |
| 6.0.0 | 3 years ago | 16 KB | MIT |
| 5.5.0 | 4 years ago | 16 KB | MIT |
| 5.4.0 | 4 years ago | 16 KB | MIT |
| 5.3.0 | 4 years ago | 14 KB | MIT |
| 5.2.0 | 4 years ago | 14 KB | MIT |
| 5.1.0 | 5 years ago | 10 KB | MIT |
| 5.0.0 | 5 years ago | 8.5 KB | MIT |
Overview
p-map is an npm package that map over promises concurrently. It has 1 known dependents in the graph. The latest version is 7.0.7, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need map over promises concurrently and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use p-map?
Yes — p-map scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 13 days ago. 5 releases in the last 2 years.
How do I install p-map?
Run `npm install p-map` to add p-map to your npm project.
What license is p-map released under?
p-map is distributed under the MIT license.
How popular is p-map?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on p-map.
Is p-map still maintained?
The most recent release of p-map (v7.0.7) was published 13 days ago.
Does p-map run install scripts?
No. p-map does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.