Skip to content

NodeJS library used to move files and directories using glob patterns

License

Notifications You must be signed in to change notification settings

ikatun/glob-move

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glob-move

NodeJS library used to move files and directories using glob patterns

Copy contents of node_modules/ directory to my_modules/ directory

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);

About

NodeJS library used to move files and directories using glob patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published