@anio-fs/clean

4.0.0 • Public • Published

@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"
	}
})

Readme

Keywords

none

Package Sidebar

Install

npm i @anio-fs/clean

Weekly Downloads

9

Version

4.0.0

License

MIT

Unpacked Size

151 kB

Total Files

10

Last publish

Collaborators

  • exory2024