🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@john-yuan/dev-browserify-watcher

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@john-yuan/dev-browserify-watcher - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+1
-1
package.json
{
"name": "@john-yuan/dev-browserify-watcher",
"version": "1.0.1",
"version": "1.0.2",
"description": "A browserify watcher",

@@ -5,0 +5,0 @@ "main": "index.js",

# Browserify Watcher
This module helps you compile your files with browserify when the files changed. I try to make the API as simple as possiable so that I can start a new project quickly with the help of this module. I have published this module to [npm][npm-repo] with the scope of my user name. You can treat it as a private module with the public access. This module is not tested so carefully. Keep this in mind, before your may use it. Below is an example:
This module helps you compile your files with browserify when the files changed. I try to make the API as simple as possiable so that I can start a new project quickly with the help of this module. I have published this module to [npm][npm-repo] with the scope of my user name. You can treat it as a private module with the public access. This module is not tested so carefully. Keep this in mind, before you may use it. Below is an example:

@@ -12,10 +12,15 @@ [npm-repo]: https://www.npmjs.com/package/@john-yuan/dev-browserify-watcher

var fsWatcher = watcher.watch({
entry: 'lib/index.js', // The input file of browserify
output: 'dist/bundle.js', // The output file
paths: 'lib/**/*.js', // The files to watch
browserifyOptions: { // The options pass to browserify (optional)
// The input file of browserify
entry: 'lib/index.js',
// The output file
output: 'dist/bundle.js',
// The files to watch
paths: 'lib/**/*.js',
// The options pass to browserify (optional)
browserifyOptions: {
debug: true
},
chokidarOptions: {}, // The options pass to choidar (optional)
// The options pass to choidar (optional)
chokidarOptions: {},
});
```