Simple Node.js read file example
var fs = require('fs');
fs.readFile('../build/bundle.js', function(err, data) {
if (err) console.log('There was an issue trying to read the file', err);
else console.log(data.toString());
});
fs.watch('../app', function (event, filename) {
console.log(event);
console.log(filename);
});
no comments