node-copyfile
v1.1.0
Published
npm package for copying files
Downloads
16
Readme
node-copyfile
copy files util
Usage
npm install node-copyfile -D
import {
copyFileBatch,
type Option,
} from "node-copyfile";
async function copy() {
const options: Option[] = [
{
src: ["src/js/*.js", "src/css/*.css"],
dest: "dist",
},
{
src: "src/public/index.html",
dest: "dist/public",
},
];
await copyFileBatch(options);
}
- dist
- css
- a.css
- js
- a.js
- b.js
- public
- index.html