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 0.1.0 to 0.1.2

4

._HISTORY.md
Mac OS X  2��ATTR����!�!com.macromates.caret{
column = 5;
line = 0;
column = 0;
line = 7;
}

@@ -0,0 +0,0 @@ Mac OS X  2��ATTR����"�"com.macromates.caret{

Mac OS X  2��ATTR����"�"com.macromates.caret{
column = 1;
line = 30;
column = 20;
line = 2;
}
Mac OS X  2��ATTR����#�#com.macromates.caret{
column = 13;
line = 31;
column = 25;
line = 19;
}

@@ -1,9 +0,14 @@

0.0.2 / 2011-04-24
0.1.1 / 2011-10-07
==================
* Added command line utility
0.0.2 / 2011-10-05
==================
* Updated package.json
0.0.1 / 2011-04-24
0.0.1 / 2011-10-04
==================
* Initial release
* Initial release
Mac OS X  2��ATTR����#�#com.macromates.caret{
column = 27;
line = 13;
column = 19;
line = 32;
}
Mac OS X  2��ATTR����#�#com.macromates.caret{
column = 22;
column = 24;
line = 48;
}

@@ -17,2 +17,5 @@ var argv, fs, optimist, path, puts;

},
p: {
description: 'Pattern to match for the generated password'
},
h: {

@@ -24,7 +27,12 @@ description: 'Displays this help'

this.run = function() {
var generatePassword = require('./password-generator');
var generatePassword = require('./password-generator'),
pattern = argv.p || null;
if (argv.h) {
return optimist.showHelp();
}
puts(generatePassword(argv.l, argv.c === 'memorable'));
if(pattern){
pattern = new RegExp(pattern);
argv.c = false;
}
puts(generatePassword(argv.l, argv.c === 'memorable', pattern));
};

@@ -49,2 +49,2 @@ /*!

*/
exports.version = '0.1.0';
exports.version = '0.1.2';
{
"name": "password-generator",
"version": "0.1.0",
"version": "0.1.2",
"description": "Memorable password generator",

@@ -5,0 +5,0 @@ "author": "Bermi Ferrer <bermi@bermilabs.com>",

@@ -20,5 +20,6 @@ # password-generator

Options:
-l Password length
-l Password length
-c Generates a non memorable password [default: false]
-h Displays this help
-p Pattern to match for the generated password
-h Displays this help

@@ -28,2 +29,3 @@ Simple memorable pass

password-generator
=> maqetaxaku

@@ -33,2 +35,3 @@ Custom length

password-generator -l 30
=> nugiferagiraqadamedewubaqirali

@@ -38,4 +41,20 @@ Non memorable

password-generator -c
=> QPnb3gl7_0
Customize the pattern to match for each password character
password-generator -p "[\d\W\w\p]"
=> Je;VgG?{Yd
Any number or letter
password-generator -p "[\w]"
=> 3NHPqzjIAq
Combine multiple strategies 6 memorable and 3 numbers
echo "`password-generator -l 6``password-generator -p "[0-9]" -l 3`"
=> wazawe351
### From node.js

@@ -42,0 +61,0 @@

@@ -0,0 +0,0 @@ Mac OS X  2��ATTR����"�"com.macromates.caret{

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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