{"library":"mv","type":"library","category":null,"description":"The `mv` package by `andrewrk` provides a robust utility for moving files and directories in Node.js, specifically addressing the limitation of `fs.rename` which cannot perform operations across different devices or file systems. It first attempts a standard `fs.rename` and, upon failure (e.g., cross-device boundary), transparently falls back to a copy-then-unlink strategy. For files, this involves piping data, and for directories, it utilizes a recursive copy (`ncp`) followed by removal of the source (`rimraf`). It supports options like automatically creating destination parent directories (`mkdirp: true`) and preventing overwrites (`clobber: false`). The current stable version, `2.1.1`, was released in 2015. Given its age and lack of recent updates, this package is considered abandoned. Developers are advised to consider actively maintained alternatives, such as `move-file`, which offer modern Promise-based APIs and enhanced ESM support, if possible.","language":"javascript","status":"abandoned","version":"2.1.1","tags":["javascript","mv","move","rename","device","recursive","folder"],"install":[{"cmd":"npm install mv","imports":["const mv = require('mv');","import mv from 'mv';","const mv = await import('mv').then(mod => mod.default || mod);"]},{"cmd":"yarn add mv","imports":[]},{"cmd":"pnpm add mv","imports":[]}],"homepage":null,"github":"https://github.com/andrewrk/node-mv","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mv","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mv/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}