Swaps the contents of two files or two directories. I.e. swap their full path including name
npm install shwop, or
npm install shwop -g for use as a CLI.
const shwop =// If supplied a callback, shwop will call it// If no callback supplied, will return a Promiseshwop
It can also shwop stuff synchronously. Hope you have a good reason for using sync.
If installed with
npm install shwop -g it can be used as a global
shwop <path1> <path2> which is useful when mucking about the terminal.