promise-map

1.2.0 • Public • Published

promise-map

NPM version build status Test coverage Downloads

Map over an array and return a Promise.

Installation

$ npm install promise-map

Usage

const map = require('promise-map')
 
Promise.resolve([1, 2, 3])
  .then(map((val) => val + 1))
// => [2, 3, 4]

Why?

This module is basically equivalent to bluebird.map, but it's handy to have the one function you need instead of a kitchen sink. Modularity! Especially handy if you're serving to the browser and need to reduce your javascript bundle size.

Works great in the browser with browserify!

See Also

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    581
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    581
  • 1.1.0
    3
  • 1.0.1
    4
  • 1.0.0
    2

Package Sidebar

Install

npm i promise-map

Weekly Downloads

76

Version

1.2.0

License

MIT

Last publish

Collaborators

  • yoshuawuyts