require-promise

1.0.1 • Public • Published

Promise polyfill wrapper

This is a wrapper around promise-polyfill. It either returns the native Promise (in Node >= 0.12), or promise-polyfill (in Node <= 0.10).

It just makes it easier to add the require.

var Promise = require('require-promise');

If you did this with require('require-promise') you would always get the polyfill.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2,820
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2,820
  • 1.0.0
    0

Package Sidebar

Install

npm i require-promise

Weekly Downloads

2,281

Version

1.0.1

License

ISC

Last publish

Collaborators

  • mrdaniellewis