Glob files and copy/symlink/hardlink in another directory.
import { shadow } from "@seangenabe/shadow"
Globs the current directory (opts.cwd || process.cwd()
) and copies, symlinks, or hardlinks the globbed files with the globbed folder structure into dest.
Parameters:
globby
'symlink' | 'link'
- Symlink or hardlink the files. If unspecified, will simply copy the files.EPERM
).Returns a promise that resolves when all files have been hardlinked.
shadow <cwd> <dest> [pattern = **]
Options:
hardlink
?This package is modified from hardlink
's code and is a superset of its functionality.
MIT