1.3.0 • Published 6 months ago

globby-cp v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

globby-cp

globby-boosted file copying util

Release Maintainability Test Coverage

Install

yarn add globby-cp

Usage

CLI

globby-cp src/*.js dist/
npx globby-cp ./* ./foo/bar --ignore-files .gitignore
OptionDescriptionDefault
--base-fromBase dir for from patternprocess.cwd()
--base-toBase dir for to argumentprocess.cwd()
--ignore-files, -iPath to ignoreFile (like .gitignore or .npmignore)
--version -vPrint version
--help -hShow help

JS API

import {copy} from 'globby-cp'

await copy({
  from:       'src/**/*.js',
  to:         'dist/',
  baseFrom,   // process.cwd()
  baseTo,     // process.cwd(),
  debug,      // () => {}
  ignoreFiles // undefined
})

globby-cp + git

https://github.com/antongolub/git-glob-cp

License

MIT

1.2.0

6 months ago

1.3.0

6 months ago

1.1.3

1 year ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago