0.0.1 • Published 4 years ago
@napi-rs/notify v0.0.1
@napi-rs/notify
notify Node.js binding via napi-rs.
Install this package
yarn add @napi-rs/notify
Support matrix
Operating Systems
node12 | node14 | node16 | |
---|---|---|---|
Windows x64 | ✓ | ✓ | ✓ |
Windows x32 | ✓ | ✓ | ✓ |
Windows arm64 | ✓ | ✓ | ✓ |
macOS x64 | ✓ | ✓ | ✓ |
macOS arm64 | ✓ | ✓ | ✓ |
Linux x64 gnu | ✓ | ✓ | ✓ |
Linux x64 musl | ✓ | ✓ | ✓ |
Linux arm gnu | ✓ | ✓ | ✓ |
Linux arm64 gnu | ✓ | ✓ | ✓ |
Linux arm64 musl | ✓ | ✓ | ✓ |
Android arm64 | ✓ | ✓ | ✓ |
FreeBSD x64 | ✓ | ✓ | ✓ |
API
const unwatch = watch('/some/path/to/watch', (err: Error | null, event: NotifyEvent) => {
// some logic
})
unwatch() // unwatch later
0.0.1
4 years ago