New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eastwood

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eastwood - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2

bin/eastwood.js

30

index.js

@@ -47,30 +47,2 @@ #! /usr/bin/env node

// Write your NodeJS scripts to run from the command line or be required.
if (!module.parent) {
// Directly invoked.
// Slice out the script from the args
const origArgs = process.argv.slice(process.argv[0].endsWith('node') ? 2 : 1);
// Optional default logic if no arguments were provided
const myArgs = origArgs.length < 3 ? defaultArgs : origArgs;
const method = myArgs[0];
// Check if the argument is one of our named methods
if (methods[method]) {
// Args arrive as strings, so this might need more work.
// Arrays and Objects are probably not convenient.
console.log(`Installing ${method}`);
// Execute our method with the rest of the command-line arguments
methods[method].apply(null, myArgs.slice(1))
.then(({data}) => console.log(data), err => console.error(err));
} else {
// You could put a default here if you don't want it to use the methods above
console.log('The method you requested was not found.');
}
} else {
// Required by another file
module.exports = methods;
}
module.exports = methods;

@@ -5,2 +5,5 @@ {

},
"bin": {
"eastwood": "./bin/eastwood.js"
},
"bugs": {

@@ -27,3 +30,3 @@ "url": "https://github.com/oculus42/eastwood/issues"

},
"version": "2.0.0-alpha.1"
"version": "2.0.0-alpha.2"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc