Socket
Socket
Sign inDemoInstall

copyfiles

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copyfiles - npm Package Compare versions

Comparing version 2.3.0 to 2.4.1

4

index.js

@@ -6,2 +6,3 @@ 'use strict';

var mkdirp = require('mkdirp');
var untildify = require('untildify');
var through = require('through2').obj;

@@ -93,3 +94,4 @@ var noms = require('noms').obj;

}
toStream(input)
outDir = outDir.startsWith('~') ? untildify(outDir) : outDir;
toStream(input.map(function(srcP) {return srcP.startsWith('~') ? untildify(srcP) : srcP;}))
.pipe(through(function (pathName, _, next) {

@@ -96,0 +98,0 @@ var self = this;

{
"name": "copyfiles",
"version": "2.3.0",
"version": "2.4.1",
"description": "copy some files",

@@ -21,3 +21,4 @@ "main": "index.js",

"through2": "^2.0.1",
"yargs": "^15.3.1"
"untildify": "^4.0.0",
"yargs": "^16.1.0"
},

@@ -24,0 +25,0 @@ "repository": {

@@ -106,1 +106,4 @@ copyfiles [![Build Status](https://travis-ci.org/calvinmetcalf/copyfiles.svg)](https://travis-ci.org/calvinmetcalf/copyfiles)

takes an array of paths, last one is the destination path, also takes an optional argument which the -u option if a number, otherwise if it's `true` it's the flat option or if it is an object it is a hash of the various options (the long version e.g. up, all, flat, exclude, error, verbose, follow, and soft)
### Tilde support for home directory
when the src/dest path start with tilde for home directory under windows, please make sure -u or -f is added in options or use copyup command. if not you will get `Error: Illegal characters in path.`

Sorry, the diff of this file is not supported yet

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