New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

atom-watcher

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-watcher

Watch file changes and live reload Atom-Shell app.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 23 Apr 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc