Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/screendriver/cp-cli

💻 A "cp" CLI util for Node.js
https://github.com/screendriver/cp-cli

cli copy nodejs unix

Last synced: about 2 months ago
JSON representation

💻 A "cp" CLI util for Node.js

Awesome Lists containing this project

README

        

# cp-cli

[![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)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier)

## This GitHub project has been archived in favour of

- [cpy-cli](https://github.com/sindresorhus/cpy-cli)
- [ncp](https://github.com/AvianFlu/ncp)
- [cpx](https://github.com/mysticatea/cpx)

---

The [UNIX command]() `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/
```