@anio-fs/clean
v4.0.0
Published
Clean a directory.
Downloads
34
Readme
@anio-fs/clean
Clean a directory.
import {clean, cleanSync} from "@anio-fs/clean"
await clean("./dir/")
//
// delete everything except root .gitkeep file
//
await clean("./dir/", {
preserve(entry) {
return entry.relative_path === ".gitkeep"
}
})