jinzhi0123 / npcopy

Copy files and directories without node_modules and other specified files. 忽略node_modules 快速复制项目。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npcopy


Copy files and directories without node_modules and other specified files. Copy your project to another directory at high speed!

installation

Simply use the following command:

$ npx npcopy

Or if for some reason you want to install it:

$ npm i -g npcopy

usage

By default, npcopy will enter the interactive mode, where you can input the source and destination paths and select the ignore files you want to ignore.

Or you can use the command line mode, where you can specify the source and destination paths and ignore files.

arguments

arguments description
source source path
output dest path

options

options description
-V, --version output the version number
-i, --ignores <ignores...> ignore files you want
-l, --list only output file list
-a, --interactive interactive mode (default) path
-h, --help display help for command

examples

$ npcopy                                         - interactive mode
$ npcopy ./source ./output                       - copy the former to the latter without node_modules
$ npcopy ./source ./output -i node_modules dist  - copy the former to the latter without node_modules and dist
$ npcopy /opt/source -i node_modules -l          - only list files without node_modules

About

Copy files and directories without node_modules and other specified files. 忽略node_modules 快速复制项目。


Languages

Language:TypeScript 50.2%Language:JavaScript 49.8%