# fsnotifier

> fsnotifier emits events to track appends to files.

Latest version **0.0.8** (published 2015-06-23) · ISC license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2015-06-23 |
| First published | 2015-06-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | fortruce |
| Maintainers | fortruce |
| Keywords | notify, track, append, growing, log, notifier |

## Links

- npm: https://www.npmjs.com/package/fsnotifier
- Repository: https://github.com/fortruce/fsnotifier
- Issues: https://github.com/fortruce/fsnotifier/issues
- npm.io page: https://npm.io/package/fsnotifier

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.0.8 (latest) — 2015-06-23
- 0.0.7 — 2015-06-23
- 0.0.6 — 2015-06-23
- 0.0.5 — 2015-06-23
- 0.0.4 — 2015-06-23
- 0.0.3 — 2015-06-23
- 0.0.2 — 2015-06-23
- 0.0.1 — 2015-06-16

## README

# fsnotifier

A Node.js module for tracking appends to a file.

fsnotifier will emit `change` events for each chunk of appends to a file.
It continuously polls the file and waits for it to stabalize, then it emits a
`change` event with a readable stream of the changes.

## Install

```bash
$ npm install fsnotifier
```

## Usage

Initialize a notifier for a file:

```javascript
var notifier = require('fsnotifier');

var n = notifier('logfile.txt');

// register a listener to the change event and pipe the changes to stdout
n.on('change', function(stream) {
  stream.pipe(process.stdout);
});

// stop notifications
n.close();
```

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