UNPKG
filewatcher-cli
Version:
latest (0.1.0)
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
watch files and take actions on changes
github.com/sokrato/filewatcher-cli
sokrato/filewatcher-cli
filewatcher-cli
/
index.js
13 lines
(9 loc)
•
194 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
fs =
require
(
'fs'
) fs.
watch
(
'/tmp/logs'
,
(
eventType, filename
) =>
{
if
(filename) {
console
.
log
(filename); } });
exports
.
greet
=
function
(
) {
console
.
log
(
'hello world!'
); }