Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ccdir

paboulos15MIT1.1.0TypeScript support: included

A Node.js module to recursively copy or remove the contents of a directory

node, file, path, remove, copy, directory

readme

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 --help

Installation

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;

changelog

1.0

  • ccdir implementation of clean and copy