JSPM

  • Created
  • Published
  • Downloads 31663836
  • Score
    100M100P100Q216216F

Require anything.

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 Build Status

Require anything.

NPM

What is it?

This module will find, require and register any file type the npm ecosystem has a module loader for. Once this is done, you can require the provided file type natively.

Currently supported extensions: .co, .coco, .coffee, .iced, .ini, .js, .json, .litcoffee, .ls, .toml, .xml, .yaml, .yml

API

learn(extension)

This method will look for a module loader associated with the provided extension and attempt to require it. If necessary, it will also run any setup required to register it with [http://nodejs.org/api/globals.html#globals_require_extensions]. If calling is successful (aka: it doesn't throw), you can now require files with the provided extension natively.

Usage

var interpret = require('interpret');
interpret('.coffee');
require('file.coffee');