Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Copy files or directories using globs.
TODO
Install with npm
$ npm i copy --save
var copy = require('copy');
Usage with [gulp]
In your project's gulpfile.js:
var gulp = require('gulp');
var copy = require('copy');
gulp.task('default', function (cb) {
copy('fixtures/*.txt', 'actual', cb);
});
Asynchronously copy a glob of files from a
to b
.
Params
patterns
{String|Array}: Glob pattern or array of glob patterns.dest
{String}: Destination directoryoptions
{Object}: Options for [mkdirp] or [globby]. You may also pass a custom [rewrite] function on the options.cb
{Function}: Callbackerr
{Object}: [cb] Error objectfiles
{Array}: [cb] Array of filesSynchronously copy a glob of files from a
to b
.
Params
patterns
{String|Array}: Glob pattern or array of glob patterns.dest
{String}: Destination directoryoptions
{Object}: Options for [mkdirp] or [globby]. You may also pass a custom [rewrite] function on the options.Asynchronously and recursively copy all files in directory a
to b
.
Params
dirname
{String}: Source directorydest
{String}: Destination directoryoptions
{Object}: Options for [mkdirp]. You may also pass a custom [rewrite] function on the options.cb
{Function}: Callbackerr
{Object}: [cb] Error objectfiles
{Array}: [cb] Array of filesSynchronously and recursively copy all files in directory a
to b
.
Params
dirname
{String}: Source directorydest
{String}: Destination directoryoptions
{Object}: Options for [mkdirp]. You may also pass a custom [rewrite] function on the options.Asynchronously copy a single file from a
to b
. A thin wrapper around the copy.base
method, to provide error reporting and to create directories when they
don't already exist.
Params
fp
{String}: Source file pathdest
{String}: Destination directoryoptions
{Object}: Options for [mkdirp]. You may also pass a custom [rewrite] function on the options.cb
{Function}: Callbackerr
{Object}: [cb] Error objectfiles
{Array}: [cb] Array of filesSynchronously copy a single file from a
to b
. A thin wrapper around the copy.base
method, to provide error reporting and to create directories when they
don't already exist.
Params
fp
{String}: Source file pathdest
{String}: Destination directoryoptions
{Object}: Options for [mkdirp]. You may also pass a custom [rewrite] function on the options.Base function for copying files.
Params
src
{String}: Source file pathdest
{String}: Destination directoryreturns
{String}Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on September 14, 2015.
FAQs
Copy files or directories using globs.
The npm package copy receives a total of 16,375 weekly downloads. As such, copy popularity was classified as popular.
We found that copy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.