koaify

1.0.2 • Public • Published

koaify

NPM version Downloads

Mark all koa and fax compatible packages as es6ify targets to run them in the browser.

Installation

npm install koaify

Usage

var browserify = require('browserify');
var es6ify = require('es6ify');
var koaify = require('koaify');
 
koaify();
 
browserify()
  .add(es6ify.runtime)
  .transform(es6ify)
  .require(require.resolve('./index.js'), { entry: true })
  .bundle()
  .pipe(fs.createWriteStream('./build/bundle.js'));

Why?

Because adding a browserify clause to the package.json of >40 modules would be too invasive. This solves adding es6ify elegantly without really impacting performance.

See also

License

MIT

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i koaify

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • yoshuawuyts