Comparing version 0.2.0 to 0.3.0
12
index.js
exports.extensions = { | ||
'.co': 'coco', | ||
'.coffee': 'coffee-script', | ||
'.coffee': 'coffee-script/register', | ||
'.csv': 'require-csv', | ||
'.iced': 'iced-coffee-script', | ||
'.iced': 'iced-coffee-script/register', | ||
'.ini': 'require-ini', | ||
'.js': null, | ||
'.json': null, | ||
'.litcoffee': 'coffee-script', | ||
'.litcoffee': 'coffee-script/register', | ||
'.ls': 'livescript', | ||
@@ -18,8 +18,2 @@ '.toml': 'toml-require', | ||
exports.register = { | ||
'coffee-script': function (module) { | ||
module.register(); | ||
}, | ||
'iced-coffee-script': function (module) { | ||
module.register(); | ||
}, | ||
'toml-require': function (module) { | ||
@@ -26,0 +20,0 @@ module.install(); |
{ | ||
"name": "interpret", | ||
"description": "A dictionary of file extensions and associated module loaders.", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"homepage": "https://github.com/tkellen/node-interpret", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -16,9 +16,9 @@ # interpret | ||
'.co': 'coco', | ||
'.coffee': 'coffee-script', | ||
'.coffee': 'coffee-script/require', | ||
'.csv': 'require-csv', | ||
'.iced': 'iced-coffee-script', | ||
'.iced': 'iced-coffee-script/require', | ||
'.ini': 'require-ini', | ||
'.js': null, | ||
'.json': null, | ||
'.litcoffee': 'coffee-script', | ||
'.litcoffee': 'coffee-script/require', | ||
'.ls': 'livescript', | ||
@@ -33,11 +33,5 @@ '.toml': 'toml-require', | ||
### register | ||
If a module does not automatically register itself with [require.extensions], use one of these methods. | ||
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. | ||
```js | ||
{ | ||
'coffee-script': function (module) { | ||
module.register(); | ||
}, | ||
'iced-coffee-script': function (module) { | ||
module.register(); | ||
}, | ||
'toml-require': function (module) { | ||
@@ -44,0 +38,0 @@ module.install(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3585
20
42