A command-line utility to copy files and directories with glob support and flexible path manipulation.
copyfiles is a Node.js-based command-line utility that copies files and directories with support for glob patterns, path manipulation, and exclusion filters. It solves the problem of cumbersome file copying in scripts by providing options to flatten directories, skip existing files, and control output structure.
Developers and DevOps engineers who need to automate file copying in build processes, deployment scripts, or development workflows, especially those working with Node.js projects.
It offers a more powerful and flexible alternative to native OS copy commands, with cross-platform glob support, programmatic access, and fine-grained control over file selection and output paths.
copy files on the command line
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Handles glob patterns like *.js and **/*.txt consistently across Windows, macOS, and Linux, with specific quoting rules for platforms like Mac where globstars need quotes.
Offers --up to slice directory levels and --flat to merge nested files into a single folder, simplifying output structures in build scripts.
Supports excluding files with patterns (e.g., *.test.js) and prevents overwrites with --soft, giving fine-grained control over copy operations.
Provides a JavaScript API for integration into Node.js scripts, enabling automated copying logic beyond command-line use.
Requires double-quoted globs on Windows and tilde paths need -u or -f flags to avoid errors, adding setup overhead compared to Unix-like systems.
Lacks advanced capabilities like file compression, checksum verification, or incremental copying, making it unsuitable for robust data management tasks.
Relies on Node.js, which may not be ideal for environments where Node.js is unavailable or where lightweight, native tools are preferred.