New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gently-copy

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gently-copy

Copy files without overwriting

  • 3.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.3K
decreased by-3.94%
Maintainers
1
Weekly downloads
 
Created
Source

gently-copy

Safely, colorfully and informatively copy files without overwriting

npm version Build Status Dependency Status

PRs Welcome MIT License npm downloads

js-standard-style

Why?

  • Copying files is sensitive operation with possible side-effects.
  • Standard utilities do not sufficiently inform the user about what is going on.

Features

  • Safely copy files and directories without overwriting.
  • Skip overwriting existing files, inform instead (or configure to overwrite instead with option = {overwrite: true}.
  • Create new directories if needed.
  • Clearly and colorfully inform about all actions peformed.

Install

$ npm install --save gently-copy

Usage

var gentlyCopy = require('gently-copy')

var fileList = ['some-file', 'some-dir']
var dest = 'some-dest'

gentlyCopy(fileList, dest) // no overwriting (default)
gentlyCopy(fileList, dest, {overwrite: true}) // force overwriting

Console output with colors, thanks to the wonderful chalk:

= Begin copying files
 - Copying file or directory: some-file
 - Copying file or directory: some-dir
= End copying files

API

gentlyCopy (source, destination, options)

source

Type: string or (array of strings)

Single or list of file and directory name(s).

destination

Type: string

Destination directory name.

options (optional)

Type: object

To overwrite existing files, pass option = {overwrite: true}

License

MIT © Dmitri Zaitsev

Keywords

FAQs

Package last updated on 23 May 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc