# ycopy

> A cli for copy files and folders

Latest version **0.1.2** (published 2018-02-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ycopy
pnpm add ycopy
yarn add ycopy
bun add ycopy
```

Provides the command `ycopy`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-02-18 |
| First published | 2018-02-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 28.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | TomeOkin |
| Maintainers | tomeokin |
| Keywords | cp, copy, cli, file, folder, dir |

## Links

- npm: https://www.npmjs.com/package/ycopy
- Repository: https://github.com/CTWorld/ycopy
- Homepage: https://github.com/CTWorld/ycopy#readme
- Issues: https://github.com/CTWorld/ycopy/issues
- npm.io page: https://npm.io/package/ycopy

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^11.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^5.0.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-02-18
- 0.1.1 — 2018-02-17
- 0.1.0 — 2018-02-17

## README

# Ycopy

[![npm version][npm-image]][npm-url]

## Installation

``` bash
yarn add ycopy
```

## Usage

``` bash
ycopy [src] [dest] [options] [-f] [file-filters] [-r] [folder-filters]
```

## Options

* `--version`: Show version number.
* `-o`, `--overwrite`: Overwrite existing file or directory, default is `true`. Note that the copy operation will silently fail if you set this to false and the destination exists. Use the errorOnExist option to change this behavior.
* `-e`, `--errorOnExist`: When overwrite is false and the destination exists, throw an error. Default is false.
* `-s`, `--dereference`: Dereference symlinks, default is false.
* `-t`, `--preserveTimestamps`: Will set last modification and access times to the ones of the original source files, default is false.
* `-f`, `--filter-file`: To filter copied files. If no filter is apply, all files will be reserved.
* `-r`, `--filter-folder`: To filter copied folders. If no filter is apply, all folders will be reserved.
* `-d`, `--delete`: Delete first before copy files. Default is false.
* `-i`, `--info`: Show more info. Default is false.
* `-h`, `--help`: Show help.

> Copy behaviors is similiar with [`fs-extra`](fs-extra)'s [`copy`](fs-extra-copy).

## Example

```` bash
ycopy test/a test/another/a -f .*\.txt .*\.jpg -r "^((?!cd$).)*$" -d -i
````

copy files and folders from test/a to test/another/a, which file is end with .txt or .jpg and folder is not end with sequence 'cd'.

[npm-url]: https://www.npmjs.com/package/ycopy
[npm-image]: https://img.shields.io/npm/v/ycopy.svg
[fs-extra]: https://github.com/jprichardson/node-fs-extra.git
[fs-extra-copy]: https://github.com/jprichardson/node-fs-extra/blob/master/docs/copy.md

---
_Source: https://npm.io/package/ycopy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
