cp-cli
Version:
A 'cp' CLI util for Node.js
36 lines (24 loc) • 852 B
Markdown
# cp-cli
[](https://dev.azure.com/screendriver/cp-cli/_build/latest?definitionId=8&branchName=master)
[](https://github.com/prettier/prettier)
The [UNIX command](<https://en.wikipedia.org/wiki/Cp_(Unix)>) `cp` for Node.js
which is useful for cross platform support.
Just install it with
```sh
$ npm install -g cp-cli
```
After that you can use `cp-cli` from your command prompt
```sh
$ cp-cli
Usage: cp-cli [-d] source target
Options:
-d, --dereference Dereference symlinks [boolean]
```
You can copy files directly
```sh
$ cp-cli foo.txt bar.txt
```
or copy a file into an existing directory
```sh
$ cp-cli foo.text dest/
```