{"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"},{"name":"phated","email":"blaine@iceddev.com"}],"keywords":["require","cjsx","co","coco","coffee-script","coffee","coffee.md","csv","earlgrey","es","es6","iced","iced.md","iced-coffee-script","ini","js","json","json5","jsx","react","litcoffee","liticed","ls","livescript","toml","ts","typescript","xml","yaml","yml"],"dist-tags":{"latest":"0.6.2"},"author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"description":"Require any supported file as a node module.","readme":"# rechoir [![Build Status](https://secure.travis-ci.org/tkellen/js-rechoir.png)](http://travis-ci.org/tkellen/js-rechoir)\n> Require any supported file as a node module.\n\n[![NPM](https://nodei.co/npm/rechoir.png)](https://nodei.co/npm/rechoir/)\n\n## What is it?\nThis module, in conjunction with [interpret]-like objects can register any file type the npm ecosystem has a module loader for. This library is a dependency of [Liftoff].\n\n## API\n\n### prepare(config, filepath, requireFrom)\nLook for a module loader associated with the provided file and attempt require it.  If necessary, run any setup required to inject it into [require.extensions](http://nodejs.org/api/globals.html#globals_require_extensions).\n\n`config` An [interpret]-like configuration object.  \n\n`filepath` A file whose type you'd like to register a module loader for.\n\n`requireFrom` An optional path to start searching for the module required to load the requested file.  Defaults to the directory of `filepath`.\n\nIf calling this method is successful (aka: it doesn't throw), you can now require files of the type you requested natively.\n\nAn error with a `failures` property will be thrown if the module loader(s) configured for a given extension cannot be registered.\n\nIf a loader is already registered, this will simply return `true`.\n\n**Note:** While rechoir will automatically load and register transpilers like `coffee-script`, you must provide a local installation. The transpilers are **not** bundled with this module.\n\n#### Usage\n```js\nconst config = require('interpret').extensions;\nconst rechoir = require('rechoir');\nrechoir.prepare(config, './test/fixtures/test.coffee');\nrechoir.prepare(config, './test/fixtures/test.csv');\nrechoir.prepare(config, './test/fixtures/test.toml');\n\nconsole.log(require('./test/fixtures/test.coffee'));\nconsole.log(require('./test/fixtures/test.csv'));\nconsole.log(require('./test/fixtures/test.toml'));\n```\n\n[interpret]: http://github.com/tkellen/js-interpret\n[Liftoff]: http://github.com/tkellen/js-liftoff\n","repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"users":{"shanewholloway":true},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"versions":{"0.1.0":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.1.0","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^0.6.1","interpret":"^0.2.0"},"devDependencies":{"mocha":"^1.17.1","chai":"^1.9.0","coco":"^0.9.1","coffee-script":"^1.7.1","require-csv":"0.0.1","iced-coffee-script":"^1.7.1-b","require-ini":"0.0.1","toml-require":"^1.0.1","require-xml":"0.0.1","require-yaml":"0.0.1","LiveScript":"^1.2.0"},"keywords":["require","coco","coffee-script","csv","iced-coffee-script","ini","livescript","toml","xml","yaml","yml"],"_id":"rechoir@0.1.0","dist":{"shasum":"107c8d54e0479748f9e85fa6b976d77bd80faf6b","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"}],"directories":{}},"0.2.0":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.2.0","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^0.6.1","interpret":"^0.3.0"},"devDependencies":{"mocha":"^1.17.1","chai":"^1.9.0","coco":"^0.9.1","coffee-script":"^1.7.1","require-csv":"0.0.1","iced-coffee-script":"^1.7.1-b","require-ini":"0.0.1","toml-require":"^1.0.1","require-xml":"0.0.1","require-yaml":"0.0.1","LiveScript":"^1.2.0"},"keywords":["require","coco","coffee-script","csv","iced-coffee-script","ini","livescript","toml","xml","yaml","yml"],"_id":"rechoir@0.2.0","dist":{"shasum":"673b56ff87558922a2d4309b70996e8ceb51ee19","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"}],"directories":{}},"0.2.1":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.2.1","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^0.6.1","interpret":"^0.3.0"},"devDependencies":{"mocha":"^1.17.1","chai":"^1.9.0","coco":"^0.9.1","coffee-script":"^1.7.1","require-csv":"0.0.1","iced-coffee-script":"^1.7.1-b","require-ini":"0.0.1","toml-require":"^1.0.1","require-xml":"0.0.1","require-yaml":"0.0.1","LiveScript":"^1.2.0"},"keywords":["require","coco","coffee-script","csv","iced-coffee-script","ini","livescript","toml","xml","yaml","yml"],"_id":"rechoir@0.2.1","dist":{"shasum":"7047685cc660b676f9038f3c5b0c37bb6b82d531","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.2.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"}],"directories":{}},"0.2.2":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.2.2","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^0.6.1","interpret":"^0.3.0"},"devDependencies":{"LiveScript":"^1.2.0","chai":"^1.9.0","coco":"^0.9.1","coffee-script":"^1.7.1","iced-coffee-script":"^1.7.1-b","json5":"^0.4.0","mocha":"^1.17.1","node-jsx":"^0.10.0","require-csv":"0.0.1","require-ini":"0.0.1","require-xml":"0.0.1","require-yaml":"0.0.1","toml-require":"^1.0.1"},"keywords":["require","coco","coffee-script","csv","iced-coffee-script","ini","livescript","toml","xml","yaml","yml"],"gitHead":"bd11a5e7bfbcd4a38237fec3c900cc728048dd36","_id":"rechoir@0.2.2","_shasum":"0f9a1a09ac410381f5ae953b70b37149bfd06c4d","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"}],"dist":{"shasum":"0f9a1a09ac410381f5ae953b70b37149bfd06c4d","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.2.2.tgz"},"directories":{}},"0.3.0":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.3.0","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^0.6.1","interpret":"^0.4.0"},"devDependencies":{"6to5":"^2.9.4","LiveScript":"^1.2.0","chai":"^1.9.0","coco":"^0.9.1","coffee-script":"^1.7.1","iced-coffee-script":"^1.7.1-b","json5":"^0.4.0","mocha":"^1.17.1","node-jsx":"^0.10.0","require-csv":"0.0.1","require-ini":"0.0.1","require-xml":"0.0.1","require-yaml":"0.0.1","toml-require":"^1.0.1"},"keywords":["require","cjsx","co","coco","coffee-script","coffee","coffee.md","csv","es","es6","iced","iced.md","iced-coffee-script","ini","js","json","json5","jsx","react","litcoffee","liticed","ls","livescript","toml","ts","typescript","xml","yaml","yml"],"gitHead":"6a6efd2e642c3ff48b05af12429821b6685b80a4","_id":"rechoir@0.3.0","_shasum":"db1ee6f8f27596a3720aa9d83b9a7aa74c99d4a3","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.35","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"},{"name":"phated","email":"blaine@iceddev.com"}],"dist":{"shasum":"db1ee6f8f27596a3720aa9d83b9a7aa74c99d4a3","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.3.0.tgz"},"directories":{}},"0.4.0":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.4.0","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^0.6.1","interpret":"^0.5.0"},"devDependencies":{"babel":"^4.1.1","LiveScript":"^1.2.0","chai":"^1.9.0","coco":"^0.9.1","coffee-script":"^1.7.1","iced-coffee-script":"^1.7.1-b","json5":"^0.4.0","mocha":"^1.17.1","node-jsx":"^0.10.0","require-csv":"0.0.1","require-ini":"0.0.1","require-xml":"0.0.1","require-yaml":"0.0.1","toml-require":"^1.0.1","typescript-register":"^1.0.6"},"keywords":["require","cjsx","co","coco","coffee-script","coffee","coffee.md","csv","es","es6","iced","iced.md","iced-coffee-script","ini","js","json","json5","jsx","react","litcoffee","liticed","ls","livescript","toml","ts","typescript","xml","yaml","yml"],"gitHead":"ed8d97686ec743ebc4cb9fe03335011162276d72","_id":"rechoir@0.4.0","_shasum":"7445ba6f5b0e3fc8af8c65884bc847afb5b023b6","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"},{"name":"phated","email":"blaine@iceddev.com"}],"dist":{"shasum":"7445ba6f5b0e3fc8af8c65884bc847afb5b023b6","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.4.0.tgz"},"directories":{}},"0.5.0":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.5.0","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^1.1.6"},"devDependencies":{"babel":"^5.4.3","chai":"^2.3.0","coco":"^0.9.1","coffee-script":"^1.9.2","iced-coffee-script":"^1.8.0-d","interpret":"^0.6.1","json5":"^0.4.0","livescript":"^1.4.0","mocha":"^2.2.5","node-jsx":"^0.13.3","require-csv":"0.0.1","require-ini":"0.0.1","require-uncached":"^1.0.2","require-xml":"0.0.1","require-yaml":"0.0.1","rimraf":"^2.3.4","semver":"^4.3.4","sinon":"^1.14.1","toml-require":"^1.0.1","typescript-register":"^1.1.0"},"keywords":["require","cjsx","co","coco","coffee-script","coffee","coffee.md","csv","es","es6","iced","iced.md","iced-coffee-script","ini","js","json","json5","jsx","react","litcoffee","liticed","ls","livescript","toml","ts","typescript","xml","yaml","yml"],"gitHead":"6c70b24ad9479febf963f539c92f2e3da99d17c9","_id":"rechoir@0.5.0","_shasum":"aa7f34454ad246ec2ce6bb986b983f1d9647adfe","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.1","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"},{"name":"phated","email":"blaine@iceddev.com"}],"dist":{"shasum":"aa7f34454ad246ec2ce6bb986b983f1d9647adfe","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.5.0.tgz"},"directories":{}},"0.6.0":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.6.0","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^1.1.6"},"devDependencies":{"babel":"^5.4.3","chai":"^2.3.0","coco":"^0.9.1","coffee-script":"^1.9.2","iced-coffee-script":"^1.8.0-d","interpret":"^0.6.1","json5":"^0.4.0","livescript":"^1.4.0","mocha":"^2.2.5","node-jsx":"^0.13.3","require-csv":"0.0.1","require-ini":"0.0.1","require-uncached":"^1.0.2","require-xml":"0.0.1","require-yaml":"0.0.1","rimraf":"^2.3.4","semver":"^4.3.4","sinon":"^1.14.1","toml-require":"^1.0.1","typescript-register":"^1.1.0"},"keywords":["require","cjsx","co","coco","coffee-script","coffee","coffee.md","csv","es","es6","iced","iced.md","iced-coffee-script","ini","js","json","json5","jsx","react","litcoffee","liticed","ls","livescript","toml","ts","typescript","xml","yaml","yml"],"gitHead":"eb84cf7a7ac3312aafebaebde87d382ffea63559","_id":"rechoir@0.6.0","_shasum":"cc3f3dd4718636a7f580ef7f202b24bee3a08376","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.1","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"},{"name":"phated","email":"blaine@iceddev.com"}],"dist":{"shasum":"cc3f3dd4718636a7f580ef7f202b24bee3a08376","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.6.0.tgz"},"directories":{}},"0.6.1":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.6.1","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^1.1.6"},"devDependencies":{"babel":"^5.4.3","chai":"^2.3.0","coco":"^0.9.1","coffee-script":"^1.9.2","iced-coffee-script":"^1.8.0-d","interpret":"^0.6.1","json5":"^0.4.0","livescript":"^1.4.0","mocha":"^2.2.5","node-jsx":"^0.13.3","require-csv":"0.0.1","require-ini":"0.0.1","require-uncached":"^1.0.2","require-xml":"0.0.1","require-yaml":"0.0.1","rimraf":"^2.3.4","semver":"^4.3.4","sinon":"^1.14.1","toml-require":"^1.0.1","typescript-register":"^1.1.0"},"keywords":["require","cjsx","co","coco","coffee-script","coffee","coffee.md","csv","es","es6","iced","iced.md","iced-coffee-script","ini","js","json","json5","jsx","react","litcoffee","liticed","ls","livescript","toml","ts","typescript","xml","yaml","yml"],"gitHead":"e3fd6590e34bcfde9d5c3a5a54c40f9d5353ae91","_id":"rechoir@0.6.1","_shasum":"462beb9fe212d568a0d1282447b09de364e5f435","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.1","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"},{"name":"phated","email":"blaine@iceddev.com"}],"dist":{"shasum":"462beb9fe212d568a0d1282447b09de364e5f435","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.6.1.tgz"},"directories":{}},"0.6.2":{"name":"rechoir","description":"Require any supported file as a node module.","version":"0.6.2","homepage":"https://github.com/tkellen/node-rechoir","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/node-rechoir.git"},"bugs":{"url":"https://github.com/tkellen/node-rechoir/issues"},"licenses":[{"type":"MIT","url":"https://github.com/tkellen/node-rechoir/blob/master/LICENSE"}],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"test":"mocha -R spec test/index.js"},"dependencies":{"resolve":"^1.1.6"},"devDependencies":{"babel":"^5.4.3","chai":"^2.3.0","coco":"^0.9.1","coffee-script":"^1.9.2","earlgrey":"0.0.9","iced-coffee-script":"^1.8.0-d","interpret":"^0.6.1","json5":"^0.4.0","livescript":"^1.4.0","mocha":"^2.2.5","node-jsx":"^0.13.3","require-csv":"0.0.1","require-ini":"0.0.1","require-uncached":"^1.0.2","require-xml":"0.0.1","require-yaml":"0.0.1","rimraf":"^2.3.4","semver":"^4.3.4","sinon":"^1.14.1","toml-require":"^1.0.1","typescript-register":"^1.1.0"},"keywords":["require","cjsx","co","coco","coffee-script","coffee","coffee.md","csv","earlgrey","es","es6","iced","iced.md","iced-coffee-script","ini","js","json","json5","jsx","react","litcoffee","liticed","ls","livescript","toml","ts","typescript","xml","yaml","yml"],"gitHead":"1aafd85aac487171be71891b916c9136c620ac0e","_id":"rechoir@0.6.2","_shasum":"85204b54dba82d5742e28c96756ef43af50e3384","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.4","_npmUser":{"name":"tkellen","email":"tyler@sleekcode.net"},"maintainers":[{"name":"tkellen","email":"tyler@sleekcode.net"},{"name":"phated","email":"blaine@iceddev.com"}],"dist":{"shasum":"85204b54dba82d5742e28c96756ef43af50e3384","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/rechoir/-/rechoir-0.6.2.tgz"},"directories":{}}},"name":"rechoir","time":{"modified":"2016-11-08T17:39:55.008Z","created":"2014-03-20T18:34:03.768Z","0.1.0":"2014-03-20T18:34:03.768Z","0.2.0":"2014-03-20T19:02:34.285Z","0.2.1":"2014-03-20T19:20:12.910Z","0.2.2":"2014-12-17T17:46:23.421Z","0.3.0":"2015-01-10T20:03:20.460Z","0.4.0":"2015-02-17T23:39:27.450Z","0.5.0":"2015-05-20T23:37:42.656Z","0.6.0":"2015-05-21T00:34:47.905Z","0.6.1":"2015-05-22T20:40:08.943Z","0.6.2":"2015-07-22T14:42:26.370Z"},"readmeFilename":"README.md","homepage":"https://github.com/tkellen/node-rechoir"}