node-file-remover
v1.0.0
Published
An utility to delete files from a list of folders inside of a parent folder
Downloads
2
Maintainers
Readme
node-file-remover
Delete files from a list of folders inside a parent folder based on file extension
Installation
# using npm
npm install node-file-remover
# using yarn
yarn add node-file-remover
Usage
# using require
const { deleteFileAdvanced } = require('node-file-remover');
# using import
import { deleteFileAdvanced } from 'node-file-remover';
Example
const folderPath = 'D:/app';
const fileExt = 'mp4';
deleteFileAdvanced(folderPath, fileExt);