1.4.0 • Published 3 months ago

node-cpr v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

cpr

The cp -r command implementation for node.

Installation

npm install node-cpr

Usage

import { cpr } from 'node-cpr'
// or
import { createRequire } from 'node:module'
const require = createRequire(import.meta.url)
const { cpr } = require('node-cpr')

cpr('example.js', 'dirname')

cpr('source/dir', 'dest/dir')

cpr('example.js', 'dirname/rename.js')

cpr(['example.js', 'src/'], 'dirname')

Command Line Interface

Usage: node-cpr [OPTION]... SOURCE... DIRECTORY
Copy Single File to DEST File.
Copy SOURCE(s) FILE or DIRECTORY to DEST DIRECTORY.
Overwrite if the DEST FILE or DIRECTORY exist.

  -h --help            Usage information
  -v --version         output version information and exit
  --mkdirp             make dest directory recursively if it not exist
1.2.0

7 months ago

1.1.1

7 months ago

1.0.2

8 months ago

1.1.0

7 months ago

1.2.4

6 months ago

1.2.3

7 months ago

1.4.0

3 months ago

1.2.2

7 months ago

1.0.4

7 months ago

1.3.0

5 months ago

1.2.1

7 months ago

1.0.3

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago