# @w5/watch

> [‼️]: ✏️README.mdt

Latest version **0.0.1** (published 2023-03-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @w5/watch
pnpm add @w5/watch
yarn add @w5/watch
bun add @w5/watch
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-03-20 |
| First published | 2023-03-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 3 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | i@wac.tax |
| Maintainers | i-user |

## Links

- npm: https://www.npmjs.com/package/@w5/watch
- Repository: https://github.com/wactax/node
- Homepage: https://github.com/wactax/node/tree/main/watch
- Issues: https://github.com/wactax/node/issues
- npm.io page: https://npm.io/package/@w5/watch

## Dependencies (3)

- [lmdbx](https://npm.io/package/lmdbx.md) ^0.5.0
- [@w5/u8](https://npm.io/package/@w5/u8.md) ^0.0.1
- [@w5/walk](https://npm.io/package/@w5/walk.md) ^0.0.1

## Recent versions

- 0.0.1 (latest) — 2023-03-20

## README

[‼️]: ✏️README.mdt

# @w5/watch

[test/main.coffee](./test/main.coffee) :

```coffee
#!/usr/bin/env coffee

> @w5/uridir
  @w5/watch > watchOnce
  path > join

ROOT = uridir import.meta

await watchOnce(
  join(ROOT,'.watch')
  ROOT
  (fp)=> # ignore
    not fp.endsWith '.coffee'
  (fp)=> # change
    console.log 'change', fp
    return
  (fp)=> # rm
    console.log 'rm ',fp
    return
)
```

output :

```
change main.coffee
```

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