Socket
Socket
Sign inDemoInstall

file-watch

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-watch

watch very specific files


Version published
Maintainers
2
Created
Source

File Watch

Super simple file watcher. Unlike other watchers that listen on directories and globs, this file only listens to specific files. This is specifically made for normalize-builder where all files are known and constantly updated.

API

var Watcher = require('file-watch')

var watcher = new Watcher()

watcher.watch('custom event', [
  'file1.txt',
  'file2.txt',
])

watcher.on('custom event', function () {
  console.log('custom event!')
})

Now when file1.txt or file2.txt and changed, custom event will be emitted.

FAQs

Package last updated on 26 Jun 2014

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