Skip to content

Commit 10f7e26

Browse files
committed
Add isOneOfThem as an alternative method
1 parent 5657a01 commit 10f7e26

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

lib/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
const passwordTree = require('./passwordTree');
44

5-
exports.isStupid = (userPasswordInputString) => passwordTree
5+
const isStupid = (userPasswordInputString) => passwordTree
66
.searchForNodes(userPasswordInputString.toLowerCase());
77

8+
exports.isStupid = isStupid;
9+
exports.isOneOfThem = isStupid;
10+
exports.check = isStupid;
11+
812
exports.rateOfUsage = (userPasswordInputString) => passwordTree
913
.passwordInfo(userPasswordInputString.toLowerCase())

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stupid-passwords",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Guard your users from security problems that start by having stupid passwords",
55
"main": "index.js",
66
"scripts": {
@@ -13,11 +13,13 @@
1313
},
1414
"keywords": [
1515
"stupid",
16-
"stupid",
17-
"passwords",
1816
"password",
17+
"stupid passwords",
1918
"common",
20-
"passwords"
19+
"common passwords",
20+
"security",
21+
"user",
22+
"user password"
2123
],
2224
"author": "Eugene Mutai <[email protected]> (http://twitter.com/kn9ts)",
2325
"license": "MIT",

0 commit comments

Comments
 (0)