# node-cp

> Node.js async recursive file copy

Latest version **0.1.1** (published 2015-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-cp
pnpm add node-cp
yarn add node-cp
bun add node-cp
```

## 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.1 |
| Published | 2015-01-31 |
| First published | 2015-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Arnaud Dezandee |
| Maintainers | adezandee |
| Keywords | copy, cp, recursive, fs, file |

## Links

- npm: https://www.npmjs.com/package/node-cp
- Repository: https://github.com/Adezandee/node-cp
- Issues: https://github.com/Adezandee/node-cp/issues
- npm.io page: https://npm.io/package/node-cp

## Dependencies (1)

- [async](https://npm.io/package/async.md) ^0.9.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.1 (latest) — 2015-01-31
- 0.1.0 — 2015-01-30

## README

[![NPM Version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]

# node-cp

`cp -r` for Node.js

Install with `npm install node-cp`

## API

`cp(source, destination, callback)`

The callback will be called with an error if there is one and with an nested array of copied files names

## Usage

Usage of `node-cp` is simple

```javascript
var cp = require('node-cp');

cp(source, destination, function (err, files) {
 if (err) {
   return console.error(err);
 }
 console.log('Copied files', files);
});
```

# License

[MIT](LICENSE)

[npm-image]: https://img.shields.io/npm/v/node-cp.svg?style=flat
[npm-url]: https://www.npmjs.com/package/node-cp
[travis-image]: https://img.shields.io/travis/Adezandee/node-cp.svg?style=flat
[travis-url]: https://travis-ci.org/Adezandee/node-cp
[coveralls-image]: https://img.shields.io/coveralls/Adezandee/node-cp.svg?style=flat
[coveralls-url]: https://coveralls.io/r/Adezandee/node-cp?branch=master

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