📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

cpy-files

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpy-files

Copy files

0.0.4
latest
Version published
Weekly downloads
1
-85.71%
Maintainers
1
Weekly downloads
 
Created

cpy-files

Source initialized from cpy-files

Copy files synchronize

Install

$ npm install cpy-files 

or

$ yarn add cpy-files 

Usage

$ cpy-files  --help

  Usage
    $ cpy-files  <source …> <destination>

  Options
    --no-overwrite       Don't overwrite the destination
    --parents            Preserve path structure
    --cwd=<dir>          Working directory for files
    --rename=<filename>  Rename all <source> filenames to <filename>
    --dot                Allow patterns to match entries that begin with a period (.)

  <source> can contain globs if quoted

  Examples
    Copy all .png files in src folder into dist except src/goat.png
    $ cpy-files  'src/*.png' '!src/goat.png' dist

    Copy all .html files inside src folder into dist and preserve path structure
    $ cpy-files  '**/*.html' '../dist/' --cwd=src --parents

FAQs

Package last updated on 03 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts