rmot
Remove Older Than
An async function that removes all files of a directory older than a given date
Installation
$ npm install rmot --save
Example
const rmot = ; async { // Removes all files in `/path/to/some/dir` that were created before '2019-06-05T19:48:48.049Z' const result = await ; // The resolved value will contain a list of fileNames that were removed console;};