JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 801
  • Score
    100M100P100Q103433F
  • License ISC

Copy files via Node or command-line!

Package Exports

  • @apexearth/copy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@apexearth/copy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@apexearth/copy

Travis Status Coverage Status NPM Downloads install size License

Copy files via command line or Node.js.

Installation

Node.js Usage

$ npm i @apexearth/copy

Command Line Usage

$ npm i @apexearth/copy -g

Usage

Node.js Usage

const copy = require('@apexearth/copy')
copy({
    from,           // Source copy path.
    to,             // Destination copy path.
    recursive,      // Copy recursively.
    overwrite,      // Overwrite existing file
    verbose,        // Verbose output.
    ignoreErrors,   // Continue on errors.
    parallelJobs,   // Number of possible concurrent jobs.
    state,          // Save state for resume ability.
    stateFrequency  // Save state frequency.
})
    .then(() => console.log('done'))
    .catch(err => console.error(err))

Command Line Usage

Usage: copy [options] <from> <to>

Options:
  -V, --version            output the version number
  -r, --recursive          Copy recursively.
  -o, --overwrite          Overwrite existing.
  -v, --verbose            Verbose output.
  -e, --ignore-errors      Ignore errors.
  -p, --parallel-jobs <n>  Number of possible concurrent jobs.
  -s, --state <file>       Save state to file for resume ability.
  --state-frequency <n>    Save state frequency. (In <n> files saved.)
  -h, --help               output usage information