better-require
better-require copied to clipboard
A possible solution to the deprecation of require.extensions
Since require.extensions is deprecated, you could add the option of:
var betterRequire = require('better-require')('json xml yaml');
You then could even do this (if it doesn't make you feel bad inside):
var require = require('better-require')('json xml yaml');
@CamiloMM Good idea. I don't have time to maintain this project anymore unfortunately. Would you be interested to take over?
@olalonde Sorry, I'm in the same "have to maintain less stuff" vibe :/
If only we had unlimited time in our hands, eh? :)