Package Exports
- @aneesakbar/file_remover
- @aneesakbar/file_remover/fileremover.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aneesakbar/file_remover) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
File Remover
FileRemover is a Node.js program that removes files from a directory.
Installation
Clone the repository and install the dependencies:
git clone
https://github.com/eranees/file_remover.git
OR
npm i file_remover
npm i @aneesakbar/file_removerUsage
To remove files from a directory, run the following function:
node fileremover.jsOR
Call this funciton
fileRemover(directory, fileType)Directory/Folder
This is the directory or folder from which you want to clean files.
fileType
These are the file types you want to delete from the specified directory.
Examples of file types include:
pdf
jpg
png
Specify the file types you want to delete in the directory.
License
This project is licensed under the MIT License - see the LICENSE file for details.