Skip to content

Delete files and directories inside the current working directory

License

Notifications You must be signed in to change notification settings

valtlai/picodel

Repository files navigation

picodel

NPM

Delete files and directories inside the current working directory

  • Zero dependencies
  • Only static paths, no glob patterns
  • ESM and async only

Install

npm install --save-dev picodel

Usage

CLI

Syntax:

picodel [...paths]

Example CLI prompt:

npx picodel .cache public

Example npm script:

{
	"scripts": {
		"clean": "picodel .cache public"
	}
}

Module

Syntax:

picodel(...paths: string[])

Example:

import picodel from 'picodel';

await picodel('.cache', 'public');

About

Delete files and directories inside the current working directory

Resources

License

Stars

Watchers

Forks