@erwinstone/globcopy
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

globcopy

Copy files based on glob patterns

Installation

Install globcopy with npm

npm install @erwinstone/globcopy -g

Usage/Examples

cli:

data.json :

{
	"vendor/bootstrap": "node_modules/bootstrap/dist/js/bootstrap.bundle.*",
	"vendor/summernote": [
		"node_modules/summernote/dist/**/*",
		"!node_modules/summernote/dist/**/*.{zip,txt}"
	]
}
globcopy data.json
globcopy data.json --watch

javascript api:

npm install @erwinstone/globcopy
import { globcopy, globcopyRaw } from '@erwinstone/globcopy'

await globcopy({
	path: './data.json',
})

// or

await globcopy({
	path: './data.json',
	watch: true,
})

// or

await globcopyRaw(
	JSON.stringify({
		'vendor/bootstrap': 'node_modules/bootstrap/dist/js/bootstrap.bundle.*',
		'vendor/summernote': [
			'node_modules/summernote/dist/**/*',
			'!node_modules/summernote/dist/**/*.{zip,txt}'
		],
	})
)

Package Sidebar

Install

npm i @erwinstone/globcopy

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

7.66 kB

Total Files

8

Last publish

Collaborators

  • erwinstone