Closed lamweili closed 2 years ago
Should we consider this: https://nodejs.org/api/process.html#avoiding-duplicate-warnings?
My motivation was to retain the behavior of the console.warn
which warns duplicatedly if called multiple times.
Should we change it to use https://nodejs.org/api/process.html#avoiding-duplicate-warnings instead, so it only warns on the first time?
What do you guy think? Let me know and I'll make the adjustments. 😊 @RyanZim @JPeer264 @manidlou @jprichardson
To have consistent warnings from https://github.com/jprichardson/node-fs-extra/pull/953#issuecomment-1092663914 by @JPeer264
Prints out via
process.emitWarning
in the following format: