ccdir
Description
A Node.js package to recursively copy or remove the contents of a directory.\ It can run as an npm executable or node module.
Module API
- copy(source-path, destination-path)
- clean(target-path)
Executable Command Arguments
- ccdir -cl <path>
- ccdir -cp <path> <path>
- ccdir -h
- ccdir --helpInstallation
Global Installation
$ npm install ccdir -g- makes ccdir executable and module available to any npm project.
Local Development Installation
$ npm install ccdir -D- makes ccdir executable and module available to the local npm project.
Usage Examples
Binary
- "npm run ccdir -cl target" will recursively remove the contents of target directory
- "npm run ccdir -cp source target" will recursively copy source directory to the target directory
Module
const ccdir = require('ccdir');
const {clean, copy} = ccdir;