Skip to content

[feature request] support preloading usage #34

@micalevisk

Description

@micalevisk

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions