interpret
A dictionary of file extensions and associated module loaders.
![NPM](https://nodei.co/npm/interpret.png)
What is it
This is used by rechoir for registering module loaders.
API
extensions
Map file types to modules which provide a require.extensions loader.
{
'.co': 'coco',
'.coffee': 'coffee-script/require',
'.csv': 'require-csv',
'.iced': 'iced-coffee-script/require',
'.ini': 'require-ini',
'.js': null,
'.json': null,
'.litcoffee': 'coffee-script/require',
'.ls': 'livescript',
'.toml': 'toml-require',
'.xml': 'require-xml',
'.yaml': 'require-yaml',
'.yml': 'require-yaml'
}
register
Check here to see if setup is needed for the module register itself with require.extensions. If a method is returned, call it with the module.
{
'toml-require': function (module) {
module.install();
}
}