seangenabe / shadow

Glob files to copy/symlink/hardlink to another directory.
MIT License
2 stars 1 forks source link
copy filesystem fs glob hardlink link symlink

shadow

npm Build Status Coveralls Dependency Status devDependency Status node

Glob files and copy/symlink/hardlink in another directory.

Usage

import { shadow } from "@seangenabe/shadow"

shadow(pattern, dest, opts)

Globs the current directory (opts.cwd || process.cwd()) and copies, symlinks, or hardlinks the globbed files with the globbed folder structure into dest.

Parameters:

Returns a promise that resolves when all files have been hardlinked.

CLI

shadow <cwd> <dest> [pattern = **]

Options:

What happened to hardlink?

This package is modified from hardlink's code and is a superset of its functionality.

Related

License

MIT