# @webscaffold/task-copy

> @webscaffold copy task

Latest version **0.1.0-alpha.11** (published 2020-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @webscaffold/task-copy
pnpm add @webscaffold/task-copy
yarn add @webscaffold/task-copy
bun add @webscaffold/task-copy
```

## 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.0-alpha.11 |
| Published | 2020-06-04 |
| First published | 2019-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Radu Micu |
| Maintainers | radumza |

## Links

- npm: https://www.npmjs.com/package/@webscaffold/task-copy
- Repository: https://github.com/webscaffold/webscaffold/tree/master/packages/task-copy
- npm.io page: https://npm.io/package/@webscaffold/task-copy

## Dependencies (1)

- [cpy](https://npm.io/package/cpy.md) ^8.1.0

## Recent versions

- 0.1.0-alpha.11 (latest) — 2020-06-04
- 0.1.0-alpha.10 — 2020-01-21
- 0.1.0-alpha.9 — 2019-12-30
- 0.1.0-alpha.8 — 2019-10-28
- 0.1.0-alpha.7 — 2019-09-02
- 0.1.0-alpha.6 — 2019-08-08
- 0.1.0-alpha.5 — 2019-07-10
- 0.1.0-alpha.4 — 2019-07-09
- 0.1.0-alpha.3 — 2019-07-08
- 0.1.0-alpha.2 — 2019-07-02
- 0.1.0-alpha.1 — 2019-06-20

## README

<div align="center">
  <img src="media/copy.svg" alt="Web Scaffold task-copy" height="200" />
</div>

# @web-scaffold/task-copy

> [`WEB Scaffold`](https://github.com/webscaffold/webscaffold) task for copying up folders and files.

## Install

```sh
$ npm install --save-dev @webscaffold/task-copy
```

## Usage

```js
const copy = require('@webscaffold/task-copy');

await copy(['source/*.png', '!source/goat.png'], 'destination');
```

This will copy all files from the folder.

The module uses [cpy](https://github.com/sindresorhus/cpy) under the hood to copy the files.

## API

### copy(source, destination, options?)

Returns a Promise<string[]> with the destination file paths.

#### source

Type: string | string[]

Files to copy.

#### destination

Type: string

Destination directory.

#### options

Type: `object`

Options object that can be passed.

##### cpy

Type: object

Options are passed to globby.

In addition, you can specify the [cpy options](https://github.com/sindresorhus/cpy#options).

##### taskName

Type: `string`<br>
Default: `copy`

Task name that will be used by the logger to namespace the logs.

##### taskColor

Type: `string`<br>
Default: `#B2DBBF`

The color used by the logger to log to the console the task output.

## Licensing

MIT © Radu Micu

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