{"library":"move-cli","title":"move-cli: Robust File & Directory Mover CLI","description":"move-cli is a command-line interface (CLI) tool designed to move files and directories, acting as a robust alternative to `fs.rename` and mimicking the Unix `mv` utility. Its key differentiator is the ability to move items across different storage devices and to handle directories recursively, which standard `fs.rename` does not support natively. The package is built upon `andrewrk/node-mv` for its underlying moving logic. The current stable version is 2.0.0, released in late 2023, primarily focusing on dependency vulnerability fixes and CLI option parsing corrections. Its release cadence appears to be driven by maintenance and security updates rather than frequent feature additions, making it a stable choice for automated scripts and build processes.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install move-cli"],"cli":{"name":"move-cli","version":null}},"imports":["$ npm install -g move-cli\n$ move-cli source/path dest/path","$ npm install move-cli\n$ npx move-cli source/path dest/path","{\n  \"scripts\": {\n    \"move-files\": \"move-cli 'src/**/*.js' dist/js\"\n  }\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install -g move-cli\n\n# Create some dummy files and directories\nmkdir -p source/folder1 source/folder2\ntouch source/folder1/file1.txt source/folder2/file2.js\n\n# Move a single file\nmove-cli source/folder1/file1.txt destination/newfile.txt\n\n# Move a directory (and create destination parent if needed)\nmove-cli source/folder2 destination/new_folder --mkdirp\n\n# Move multiple files using a glob pattern, preventing overwrite\nmove-cli 'source/**/*.js' other_destination --noclobber","lang":"javascript","description":"Demonstrates global installation, moving single files, moving directories with parent creation, and moving multiple files with glob patterns and no-clobber option.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}