
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
Watch plugin for base applications.
Install with npm:
$ npm install base-watch --save
Heads up this plugin requires the [base-tasks][] plugin to be registered first.
var watch = require('base-watch');
var Base = require('base');
var base = new Base();
base.use(watch());
If you're using assemble or assemble-core you can add the plugin like this:
var watch = require('base-watch');
var assemble = require('assemble');
var app = assemble();
app.use(watch());
var watch = require('base-watch');
var assemble = require('assemble-core');
var app = assemble();
app.use(watch());
If no task(s) or function is specified, only the instance of FSWatcher is returned and can be used directly.
See chokidar.watch for more information.
returns {Function}: Returns the plugin function to be used in a [base][] application.Example
app.use(watch());
Watch a file, directory, or glob pattern for changes and build a task or list of tasks when changes are made. Watch is powered by [chokidar][] so arguments can be anything supported by chokidar.watch.
Params
glob {String|Array}: Filename, Directory name, or glob pattern to watchoptions {Object}: Additional options to be passed to [chokidar][]tasks {String|Array|Function}: Tasks that are passed to .build when files in the glob are changed.returns {Object}: Returns an instance of FSWatcher from [chokidar][]Example
var watcher = app.watch('templates/pages/*.hbs', ['site']);
base application. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with [verb][]:
$ npm install verb && npm run docs
Or, if [verb][] is installed globally:
$ verb
Install dev dependencies:
$ npm install -d && npm test
Brian Woodward
verb © 2016, Brian Woodward. Released under the MIT license.
This file was generated by verb, v0.9.0, on April 06, 2016.
FAQs
Watch plugin for base applications.
We found that base-watch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.