๐Ÿ“ฆ antongolub / globby-cp

globby-boosted file copying util

โ˜… 0 stars โ‘‚ 1 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
globutil
๐Ÿ“ฅ Clone https://github.com/antongolub/globby-cp.git
HTTPS git clone https://github.com/antongolub/globby-cp.git
SSH git clone git@github.com:antongolub/globby-cp.git
CLI gh repo clone antongolub/globby-cp
Anton Golub Anton Golub chore: minor code imprs 8f48d06 3 months ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ LICENSE
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ yarn.lock
๐Ÿ“„ README.md

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,        // (...string[]): void => {}
  ignoreFiles   // string[]
  // ...rest    Partial<import('globby').Options>
})

globby-cp + git

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

License

MIT