Socket
Socket
Sign inDemoInstall

interpret

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interpret - npm Package Compare versions

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc