Creates and focuses a high-frequency field of microwaves, literally cooking the target from within.
Nukor is a simple file watcher built on the top of @atom/watcher with a filtering module which removes duplicated events.
npm install nukor --save
const { watchPath } = require('nukor');
// Create a new watcher, start and listen changes
const watcher = await watchPath('/path/to/watch', {}, events => {
// ...
});
// Stop the watcher
watcher.stop();
const { Watcher } = require('nukor');
// Create a new watcher
const watcher = createWatcher('/path/to/watch');
// Listen to change events
watcher.on('change', events => {
// ...
});
// Start the watcher
await watcher.start();
// Stop the watcher
watcher.stop();
const { Watcher } = require('nukor');
// Create a new watcher
const watcher = new Watcher('/path/to/watch');
// Listen to change events
watcher.on('change', events => {
// ...
});
// Start the watcher
await watcher.start();
// Stop the watcher
watcher.stop();
Alexandre Breteau - @0xSeldszar
MIT © Alexandre Breteau