Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 650 Bytes

README.md

File metadata and controls

57 lines (38 loc) · 650 Bytes

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');