password-generator
Advanced tools
Comparing version 2.0.5 to 2.0.6
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
182
22755