Skip to content

Commit 515dea0

Browse files
package folder structure
1 parent 807e5f2 commit 515dea0

File tree

5 files changed

+10
-97
lines changed

5 files changed

+10
-97
lines changed

index.html

Lines changed: 0 additions & 49 deletions
This file was deleted.

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "password-generator",
2+
"name": "sos-password-generator",
33
"version": "1.0.0",
44
"description": "Secure passwords generator",
5-
"main": "src/index.js",
5+
"main": "src/password-generator.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
7+
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"repository": {
1010
"type": "git",

src/index.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/password-generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class PasswordGenerator{
4242
});
4343

4444
}
45-
password = password.slice(0,10);
45+
password = password.slice(0,this.settings.passwordLength);
4646
for(let i =0; i<16; i++)
4747
{
4848
password = this.#shuffle(password);
@@ -68,4 +68,4 @@ class PasswordGenerator{
6868
}
6969
}
7070

71-
exports.PasswordGenerator = PasswordGenerator;
71+
module.exports = PasswordGenerator;

0 commit comments

Comments
 (0)