JSPM

  • Created
  • Published
  • Downloads 30799272
  • Score
    100M100P100Q217460F

A dictionary of file extensions and associated module loaders.

Package Exports

  • interpret

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (interpret) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

interpret

A dictionary of file extensions and associated module loaders.

NPM

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',
  '.csv': 'require-csv',
  '.iced': 'iced-coffee-script',
  '.ini': 'require-ini',
  '.js': null,
  '.json': null,
  '.litcoffee': 'coffee-script',
  '.ls': 'livescript',
  '.toml': 'toml-require',
  '.xml': 'require-xml',
  '.yaml': 'require-yaml',
  '.yml': 'require-yaml'
}

register

If a module does not automatically register itself with require.extensions, use one of these methods.

{
  'coffee-script': function (module) {
    module.register();
  },
  'iced-coffee-script': function (module) {
    module.register();
  },
  'toml-require': function (module) {
    module.install();
  }
}