Node.js · Senior · Question 50 of 75

What do module customization hooks (module.register, registerHooks) allow?

Explanation

Tools like tsx and test runners use them. They replace the old --loader approach and the hacks on require.extensions.

Further reading

Problem with a question

Node.js · Senior · question 50

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz