# file-watch

> watch very specific files

Latest version **0.1.0** (published 2014-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install file-watch
pnpm add file-watch
yarn add file-watch
bun add file-watch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-06-26 |
| First published | 2014-04-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Jonathan Ong |
| Maintainers | jongleberry, swatinem |

## Links

- npm: https://www.npmjs.com/package/file-watch
- Repository: https://github.com/fs-utils/file-watch
- Issues: https://github.com/fs-utils/file-watch/issues
- npm.io page: https://npm.io/package/file-watch

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) *
- [exclude](https://npm.io/package/exclude.md) 1
- [array-equal](https://npm.io/package/array-equal.md) 1

## Recent versions

- 0.1.0 (latest) — 2014-06-26
- 0.0.5 — 2014-06-11
- 0.0.4 — 2014-06-11
- 0.0.3 — 2014-06-07
- 0.0.2 — 2014-04-29
- 0.0.1 — 2014-04-29
- 0.0.0 — 2014-04-28

## README

# 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](https://github.com/normalize/builder.js) where all files are known and constantly updated.

## API

```js
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.

---
_Source: https://npm.io/package/file-watch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
