# filenotify

> Watchs a file and emits 'data' events containging new data/lines in file

Latest version **0.0.1** (published 2012-03-07) · 0 weekly downloads

## Install

```sh
npm install filenotify
pnpm add filenotify
yarn add filenotify
bun add filenotify
```

## 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.0.1 |
| Published | 2012-03-07 |
| First published | 2012-03-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ryan Olds |
| Maintainers | ryanrolds |
| Keywords | watch, file, changes, notify, lines |

## Links

- npm: https://www.npmjs.com/package/filenotify
- Repository: https://github.com/ryanrolds/filechanges
- npm.io page: https://npm.io/package/filenotify

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2012-03-07

## README

[![Build Status](https://secure.travis-ci.org/ryanrolds/filenotify.png)](http://travis-ci.org/ryanrolds/filenotify)

# FileNotify #

Watchs a file and emits a 'data' event when new data/lines is saved to the watched file

## Install ##

    npm install filenotify

## Usage ##

    var FileNotify = require('filenotify');
    var watcher = new FileNotify('/path/to/file');

    watcher.on('data', function(data) {
      // data is the new line(s)
    });

    // Pause events
    watcher.pause();

    // Resume events (after pause)
    watcher.resume();
    
    // Stop
    watcher.destroy();

    // Start (after destroy)
    watcher.start();

    // Destroy after empting paused queue
    watcher.destroySoon();

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