Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

password-generator

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

password-generator - npm Package Compare versions

Comparing version 2.2.3 to 2.3.0

14

lib/cli.js

@@ -1,2 +0,14 @@

var argv = require('yargs-parser')(process.argv.slice(2));
var argv = process.argv.slice(2).reduce(
function parseArg(memo, arg, idx, rawArgs) {
var nextArg = rawArgs[idx + 1];
if (arg[0] === '-') {
var equalIdx = arg.indexOf('=');
if (equalIdx === -1) {
memo[arg[1]] = nextArg && nextArg[0] === '-' ? true : nextArg;
} else {
memo[arg[1]] = arg.slice(equalIdx + 1).trim();
}
}
return memo;
}, {});

@@ -3,0 +15,0 @@ var puts = console.log;

23

package.json
{
"name": "password-generator",
"version": "2.2.3",
"version": "2.3.0",
"description": "Memorable password generator. For the command line, Node.js and the browser.",

@@ -28,8 +28,6 @@ "author": "Bermi Ferrer <bermi@bermilabs.com>",

},
"dependencies": {
"yargs-parser": "^16.0.0"
},
"dependencies": {},
"devDependencies": {
"expect.js": "^0.3.1",
"grunt": "^1.0.4",
"grunt": "^1.1.0",
"grunt-contrib-concat": "^1.0.1",

@@ -39,8 +37,19 @@ "grunt-contrib-jshint": "^2.1.0",

"grunt-contrib-watch": "^1.1.0",
"mocha": "6.2.2"
"mocha": "7.2.0"
},
"scripts": {
"test": "make test",
"beforeBump": "grunt build && git add dist/*"
"precommit": "grunt build && git add dist/*"
},
"release-it": {
"hooks": {
"before:bump": "npm run precommit"
}
},
"files": [
"/lib",
"/index.js",
"/index.d.ts",
"/bin/password-generator"
],
"typings": "index.d.ts",

@@ -47,0 +56,0 @@ "main": "index",

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