Lines Matching refs:fs
26 const fs = require('fs');
57 fs.writeFileSync(filepathOne, 'hello');
60 () => { fs.watchFile(filepathOne); },
65 fs.watchFile(filepathOne, function() {
66 fs.unwatchFile(filepathOne);
71 fs.writeFileSync(filepathOne, 'world');
77 fs.writeFileSync(filepathTwoAbs, 'howdy');
80 () => { fs.watchFile(filepathTwo); },
86 fs.unwatchFile(filepathTwo, a);
91 fs.unwatchFile(filepathTwo, b);
94 fs.watchFile(filepathTwo, a);
95 fs.watchFile(filepathTwo, b);
99 fs.writeFileSync(filepathTwoAbs, 'pardner');
104 fs.unwatchFile(filenameThree, b);
108 fs.watchFile(filenameThree, uncalledListener);
109 fs.watchFile(filenameThree, b);
110 fs.unwatchFile(filenameThree, uncalledListener);
114 fs.writeFileSync(filenameThree, 'pardner');
118 fs.writeFileSync(filenameFour, 'hey');
122 fs.writeFileSync(filenameFour, 'hey');
129 fs.unwatchFile(`.${path.sep}${filenameFour}`, a);
131 fs.watchFile(filenameFour, a);