NodeJS library used to move files and directories using glob patterns
const move = require('glob-move');
move('node_modules/*', 'my_modules')
.then(() => 'Content of node_modules moved successfully!');
.catch(console.error);
Copy contents of node_modules/ directory to my_modules/ directory including .files (.gitignore, .npmignore...)
const move = require('glob-move');
move('node_modules/*', 'my_modules', { dot: true })
.then(() => 'Content of node_modules moved successfully!');
.catch(console.error);