1 | # cp-cli
|
2 |
|
3 | [![Build Status](https://dev.azure.com/screendriver/cp-cli/_apis/build/status/screendriver.cp-cli?branchName=master)](https://dev.azure.com/screendriver/cp-cli/_build/latest?definitionId=8&branchName=master)
|
4 | [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier)
|
5 |
|
6 | The [UNIX command](<https://en.wikipedia.org/wiki/Cp_(Unix)>) `cp` for Node.js
|
7 | which is useful for cross platform support.
|
8 |
|
9 | Just install it with
|
10 |
|
11 | ```sh
|
12 | $ npm install -g cp-cli
|
13 | ```
|
14 |
|
15 | After that you can use `cp-cli` from your command prompt
|
16 |
|
17 | ```sh
|
18 | $ cp-cli
|
19 | Usage: cp-cli [-d] source target
|
20 |
|
21 | Options:
|
22 | -d, --dereference Dereference symlinks [boolean]
|
23 | ```
|
24 |
|
25 | You can copy files directly
|
26 |
|
27 | ```sh
|
28 | $ cp-cli foo.txt bar.txt
|
29 | ```
|
30 |
|
31 | or copy a file into an existing directory
|
32 |
|
33 | ```sh
|
34 | $ cp-cli foo.text dest/
|
35 | ```
|