Chapter 2: change back to use prettier
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const fs = require('fs')
|
||||
const file = './file.txt'
|
||||
const moment = require('moment')
|
||||
const fs = require("fs");
|
||||
const file = "./file.txt";
|
||||
const moment = require("moment");
|
||||
|
||||
fs.watch(file, (eventType, filename) => {
|
||||
const time = moment().format('MMMM Do YYYY, h:mm:ss a')
|
||||
return console.log(`${filename} updated ${time}`)
|
||||
})
|
||||
const time = moment().format("MMMM Do YYYY, h:mm:ss a");
|
||||
return console.log(`${filename} updated ${time}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user