# on-file-change

> fs.watch wrapper that among other things checks SHA1 of the file to prevent multiple callback calls.

Latest version **0.1.0** (published 2014-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install on-file-change
pnpm add on-file-change
yarn add on-file-change
bun add on-file-change
```

## 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-03-09 |
| First published | 2014-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jan Swiecki |
| Maintainers | jan-swiecki |
| Keywords | fs.watch, watch |

## Links

- npm: https://www.npmjs.com/package/on-file-change
- Repository: https://github.com/jan-swiecki/node-on-file-change
- Issues: https://github.com/jan-swiecki/node-on-file-change/issues
- npm.io page: https://npm.io/package/on-file-change

## Recent versions

- 0.1.0 (latest) — 2014-03-09

## README

node-on-file-change
===================

fs.watch wrapper that among other things checks SHA1 of the file to prevent multiple callback calls.

Related: http://stackoverflow.com/q/12978924/1637178
 
Usage is the same as in `fs.watch`

    var onFileChange = require("on-file-change");
 
    // same as in fs.watch
    onFileChange("file.txt", function()
    {
        console.log("File changed!");
    });

## Installation

`npm install on-file-change`

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