-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Let's say I want to use parse-json for debugging purporses only in a codebase with a lot of JSON.parse calls. Instead of changing my code, I could just preload parse-json like:
node -r parse-json/register index.mjs
then, every call on JSON.parse in my code will use parse-json instead. This will impact the code on node_modules as well, of course.
What do you think?
An example of this would be https://github.com/bahmutov/time-stats#install-and-use
papb