All Projects → hughsk → Watchify Request

hughsk / Watchify Request

Licence: other
Wraps a watchify instance into an HTTP request handler

Programming Languages

javascript
184084 projects - #8 most used programming language

watchify-request experimental

Wraps a watchify instance into an HTTP request handler, performing the minimal amount of rebundling required and pausing requests mid-build to avoid getting old versions of your script on reload.

Usage

NPM

handler = watchifyRequest(bundler)

Creates a request handler out of a watchify or browserify instance.

handler(req, res[, done])

Handles the request, where req is an HTTPRequest instance and res is its matching HTTPResponse instance. done(err, body) is optional, and called if you want to add a custom error handler or manipulate the request after browserify is done.

See also

License

MIT. See LICENSE.md for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].