find-remove
find-remove copied to clipboard
recursively finds files by filter options from a start directory onwards and deletes these. useful if you want to clean up a directory in your node.js app.
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
const result = findRemoveSync(process.env.LOG_BASE_DIR, { age: { seconds: process.env.SECONDS_TO_RETAIN_LOG_FILES }, extensions: ".log", limit: 100 }); the base dir has multiple directories under it and the log files are under those....
Hi, tried my take at adding async support. This requires node 8 with async/await because this allows the code to be really close. The only test I needed to change...
Hi, Is there any way to ignore entire folders same as we ignore files ? Thanks :)
Great stuff, love cleaning up my all temp files of x age with a 1 liner :) Async support would be great, but otherwise one happy user here.
How do I put absolute Windows path ?
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 3.2.0 to 3.2.1. Release notes Sourced from loader-utils's releases. v3.2.1 3.2.1 (2022-11-11) Bug Fixes ReDoS problem (#224) (d2d752d) Changelog Sourced from loader-utils's changelog. 3.2.1 (2022-11-11) Bug Fixes...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 5.0.1. Release notes Sourced from ansi-regex's releases. v5.0.1 Fixes (backport of 6.0.1 to v5) This is a backport of the minor ReDos vulnerability in ansi-regex@<6.0.1,...