aw

atom-watcher

Watch file changes and live reload Atom-Shell app

Showing:

Popularity

Downloads/wk

3

GitHub Stars

6

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

1

Size (min+gzip)

0.7KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Atom Watcher

Watch html, js and css files in Atom-Shell application for any changes. Reloads the page if html or js files change, and live reloads css files when they change.

Install

npm install atom-watcher

Usage

With default options:

require('atom-watcher')();

With options:

require('atom-watcher')({
    reload_delay: 5000, // wait 5s before reloading (default 500ms) 
    html: false, // disable reload on html change (default true)
    css: false, // disable style updates (default true)
    script: false, // disable reload on script change (default true)
});

If any html or script file change, the page is reloaded after specified delay. If styles change only that css file is refreshed after specified delay.

Atom Watcher automatically watches all script files that are used with require or defined in html page. CSS files are extracted from browser document and live-reloaded.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100