Socket
Book a DemoInstallSign in
Socket

watchify-request

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchify-request

Wraps a watchify instance into an HTTP request handler

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
2
Created
Source

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.

Keywords

watchify

FAQs

Package last updated on 05 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts