🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.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

A browserify watcher

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
3
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

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 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:

var watcher = require('@john-yuan/dev-browserify-watcher');

// This function retruns an instance of `FSWatcher` that chokidar returned to it
var fsWatcher = watcher.watch({
    // 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
    },
    // The options pass to choidar (optional)
    chokidarOptions: {},
});

Keywords

browserify

FAQs

Package last updated on 18 Feb 2019

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