1.0.1 • Published 8 years ago

promise-exterminator v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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