Skip to content

Instantly share code, notes, and snippets.

View itzarty's full-sized avatar

Arty itzarty

View GitHub Profile
const fs = require("fs");
const watchRename = ( path, callback ) => {
let names = [ ];
fs.watch( path, ( event, filename ) => {
if( event == "rename" ) {