browserify development server using HTTP/2 and ES6 Modules
Last updated 6 years ago by deathcap .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install capn 
SYNC missed versions from official npm registry.


Experimental browserify development server using HTTP/2 and ES6 Modules


node capn.js ./demo/demo.js
open https://localhost:9977

browserify normally concatenates all modules into one bundle.js file, to reduce roundtrip HTTP requests and therefore latency. capn instead serves each module individually, taking advantage of the request streamlining improvements of HTTP/2 which make concatenation unnecessary.

Additionally, CommonJS modules are (partially) converted to ES6 modules using cjs2es6import for loading in the browser. For example, var foo = require('bar') is converted to import foo from 'id/bar', which causes an HTTP/2 request to /id/bar.js for loading the module.

Requires a modern browser for HTTP/2 support (tested on Chrome 41). ES6 Modules are polyfilled with es6-module-loader.

Warning: incomplete

See also



Current Tags

  • 0.1.1                                ...           latest (6 years ago)

2 Versions

  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2017 © |