promise-exterminator

1.0.1 • Public • Published

promise-exterminator

Remove Promise polyfill requires from your Javascript source code.

npm Build Status Dependency Status devDependency Status node

Usage

const promiseExterminator = require('promise-exterminator')

promiseExterminator([opts])

Returns a transform stream that replaces require statements to Promise polyfills to native Promise. We're assuming the environment the transform source code will run in already has Promise support.

  • opts.feature - Boolean - Use only if you are sure what you are doing. Include packages, with features in addition to native Promise capabilities, such as Q and Bluebird. This will only work out if the respective dependents of the packages don't use those additional features.

Browserify?

Sure.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i promise-exterminator

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • seangenabe