@unvented/delete
Installation
npm i -D @unvented/delete
Usage
Delete a directory.
delete dist
import { deleteFiles } from '@unvented/delete'
await deleteFiles('./dist')
Delete a file.
delete dist/index.js
import { deleteFiles } from '@unvented/delete'
await deleteFiles('./dist/index.js')
Delete multiple files and directories.
delete a/foo.js a/bar.js b c/foo.cjs d/bar.txt
import { deleteFiles } from '@unvented/delete'
await deleteFiles('./a/foo.js', './a/bar.js', './b', './c/foo.js', './d/bar.txt')