README
Watch
[nodejs] Watch file changes.
Install
npm install kc-watch
Use
var watch = require('kc-watch');
watch('.', function(d, f, e){
if (f.match(/\.js$/)) {
console.log(d, f, e);
}
});
[nodejs] Watch file changes.
<script type="module">
import kcWatch from 'https://cdn.skypack.dev/kc-watch';
</script>
[nodejs] Watch file changes.
npm install kc-watch
var watch = require('kc-watch');
watch('.', function(d, f, e){
if (f.match(/\.js$/)) {
console.log(d, f, e);
}
});