Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

koa-es6ify

0.1.1 • Public • Published

koa-es6ify

ES6ify middleware for koa.

Install

$ npm install koa-es6ify

Usage

var koa = require('koa');
 
var app = koa();
app.use(es6ify({
  entry: 'client/app',
  path: '/assets/bundle.js'
}));

API

es6ify(opts)

Create koa middleware

  • opts.entry Browserify entry point
  • opts.path Server bundle at this location
  • opts.add Optional add these modules to the bundle (browserify.add)
  • opts.transform Optional apply these transforms on the bundle (browserify.transform)
  • opts.options Optional bundle options (browserify.bundle(options))

License

MIT

install

npm i koa-es6ify

Downloadsweekly downloads

4

version

0.1.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar