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.0.5 to 2.0.6

2

bower.json
{
"name": "password-generator",
"description": "Memorable password generator. For the command line, Node.js and browsers.",
"version": "2.0.1",
"version": "2.0.6",
"main": "lib/password-generator.js",

@@ -6,0 +6,0 @@ "license": "MIT",

{
"name": "password-generator",
"version": "2.0.5",
"version": "2.0.6",
"description": "Memorable password generator. For the command line, Node.js and the browser.",

@@ -39,15 +39,2 @@ "author": "Bermi Ferrer <bermi@bermilabs.com>",

},
"testling": {
"browsers": [
"iexplore/9..latest",
"firefox/38..latest",
"chrome/40..latest",
"opera/30..latest",
"safari/7..latest",
"iphone/7..latest",
"ipad/7..latest"
],
"harness": "mocha",
"files": "test/*.js"
},
"main": "index",

@@ -54,0 +41,0 @@ "bin": "./bin/password-generator",

@@ -68,25 +68,26 @@ # password-generator

Browser support
[![browser support](http://ci.testling.com/bermi/password-generator.png)](http://ci.testling.com/bermi/password-generator)
### Browser support
#### Usage
Since v2.0.0 this library relies on cryptographic random values generated via [`crypto.getRandomValues`](https://developer.mozilla.org/en/docs/Web/API/RandomSource/getRandomValues). IE11 was the first IE version to include this method. Check [caniuse.com](http://caniuse.com/#feat=getrandomvalues) for details.
##### Default settings (memorable 10 letters)
### Usage
#### Default settings (memorable 10 letters)
generatePassword() // -> xexeyimahi
##### Custom length not memorable
#### Custom length not memorable
generatePassword(12, false) // -> 76PAGEaq6i5c
##### Characters should match a pattern
#### Characters should match a pattern
generatePassword(12, false, /\d/) // -> 252667390298
##### Customize the password prefix
#### Customize the password prefix
generatePassword(12, false, /\d/, 'foo-') // -> foo-67390298
##### Example with custom validation rules
#### Example with custom validation rules

@@ -93,0 +94,0 @@ Given the pattern regexp can only match a single character

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