You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

optimist

Package Overview
Dependencies
0
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.7 to 0.1.8

15

index.js

@@ -6,3 +6,3 @@ module.exports = Argv;

if (process.argv.length < 2
|| !process.argv[0].match(/(?:^|\/)node(?:-?\d+(?:\.\d+)*)?$/)) {
|| !process.argv[0].match(/(?:^|\/)node(?:[^A-Za-z]|$)/)) {
process.argv = ['coffee', ''].concat(process.argv);

@@ -218,2 +218,15 @@ }

self.camelCase = function () {
for (var key in self.argv) {
var camelCasedKey = key.replace(/-([a-z])/g, function ($0, firstLetter) {
return firstLetter.toUpperCase();
});
if (camelCasedKey !== key) {
self.argv[camelCasedKey] = self.argv[key];
delete self.argv[key];
}
}
return self;
};
return self;

@@ -220,0 +233,0 @@ };

2

package.json
{
"name" : "optimist",
"version" : "0.1.7",
"version" : "0.1.8",
"description" : "Light-weight option parsing with an argv hash. No optstrings attached.",

@@ -5,0 +5,0 @@ "main" : "./index.js",

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