@dummyboy397/pass-gen 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -4
- package/package.json +1 -1
- package/test/index.js +3 -0
- package/test/node_modules/.package-lock.json +13 -0
- package/test/node_modules/@dummyboy397/pass-gen/README.md +27 -0
- package/test/node_modules/@dummyboy397/pass-gen/functions/passGen.js +20 -0
- package/test/node_modules/@dummyboy397/pass-gen/index.js +3 -0
- package/test/node_modules/@dummyboy397/pass-gen/package.json +26 -0
- package/test/package-lock.json +28 -0
- package/test/package.json +14 -0
package/README.md
CHANGED
@@ -13,12 +13,10 @@ npm i @dummyboy397/pass-gen
|
|
13
13
|
```js
|
14
14
|
const passgen = require("@dummyboy397/pass-gen"); //defining the package
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
console.log(passGen(8)); //returns a password which contains 8 charachters
|
16
|
+
console.log(passgen(8)); //returns a password which contains 8 charachters
|
19
17
|
```
|
20
18
|
|
21
|
-
>
|
19
|
+
> passgen(length: Number)
|
22
20
|
|
23
21
|
# Want to Contribute
|
24
22
|
|
package/package.json
CHANGED
package/test/index.js
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"name": "test",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"lockfileVersion": 2,
|
5
|
+
"requires": true,
|
6
|
+
"packages": {
|
7
|
+
"node_modules/@dummyboy397/pass-gen": {
|
8
|
+
"version": "1.0.0",
|
9
|
+
"resolved": "https://registry.npmjs.org/@dummyboy397/pass-gen/-/pass-gen-1.0.0.tgz",
|
10
|
+
"integrity": "sha512-LhXad3PZKEOThomMqTY1KLmTstklxi2Jx4KOGNG/g9QmSREpYoE3izqCUMjtSIDP//tDss4Fb4h4Nx0peVcvRw=="
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Pass Gen
|
2
|
+
|
3
|
+
@dummyboy397/pass-gen is a NPM package which helps in creating passwords.
|
4
|
+
|
5
|
+
# How to install this paskage?
|
6
|
+
|
7
|
+
```sh
|
8
|
+
npm i @dummyboy397/pass-gen
|
9
|
+
```
|
10
|
+
|
11
|
+
# Example
|
12
|
+
|
13
|
+
```js
|
14
|
+
const passgen = require("@dummyboy397/pass-gen"); //defining the package
|
15
|
+
|
16
|
+
const passGen = passgen.passGen; //getting the passGen function from the package
|
17
|
+
|
18
|
+
console.log(passGen(8)); //returns a password which contains 8 charachters
|
19
|
+
```
|
20
|
+
|
21
|
+
> passGen(length: Number)
|
22
|
+
|
23
|
+
# Want to Contribute
|
24
|
+
|
25
|
+
Contribute on Patreon
|
26
|
+
|
27
|
+
Go Here - https://patreon.com/ashutoshswamy
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* @param {Number} Length
|
3
|
+
* @returns {String}
|
4
|
+
*/
|
5
|
+
|
6
|
+
module.exports = (Length) => {
|
7
|
+
if (!Length)
|
8
|
+
throw new TypeError(
|
9
|
+
"[@dummyboy397/pass-gen] => Error: Length of the passord is not given."
|
10
|
+
);
|
11
|
+
|
12
|
+
var length = Length,
|
13
|
+
response = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
|
14
|
+
value = "";
|
15
|
+
|
16
|
+
for (var i = 0, n = response.length; i < length; ++i) {
|
17
|
+
value += response.charAt(Math.floor(Math.random() * n));
|
18
|
+
}
|
19
|
+
return value;
|
20
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"name": "@dummyboy397/pass-gen",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Creates random passwords for you",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git+https://github.com/ItzAshu397/Pass-Gen.git"
|
12
|
+
},
|
13
|
+
"keywords": [
|
14
|
+
"pass-gen",
|
15
|
+
"password",
|
16
|
+
"generator",
|
17
|
+
"pass",
|
18
|
+
"generator"
|
19
|
+
],
|
20
|
+
"author": "Ashutosh Swamy",
|
21
|
+
"license": "ISC",
|
22
|
+
"bugs": {
|
23
|
+
"url": "https://github.com/ItzAshu397/Pass-Gen/issues"
|
24
|
+
},
|
25
|
+
"homepage": "https://github.com/ItzAshu397/Pass-Gen#readme"
|
26
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "test",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"lockfileVersion": 2,
|
5
|
+
"requires": true,
|
6
|
+
"packages": {
|
7
|
+
"": {
|
8
|
+
"name": "test",
|
9
|
+
"version": "1.0.0",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"@dummyboy397/pass-gen": "^1.0.0"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"node_modules/@dummyboy397/pass-gen": {
|
16
|
+
"version": "1.0.0",
|
17
|
+
"resolved": "https://registry.npmjs.org/@dummyboy397/pass-gen/-/pass-gen-1.0.0.tgz",
|
18
|
+
"integrity": "sha512-LhXad3PZKEOThomMqTY1KLmTstklxi2Jx4KOGNG/g9QmSREpYoE3izqCUMjtSIDP//tDss4Fb4h4Nx0peVcvRw=="
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"dependencies": {
|
22
|
+
"@dummyboy397/pass-gen": {
|
23
|
+
"version": "1.0.0",
|
24
|
+
"resolved": "https://registry.npmjs.org/@dummyboy397/pass-gen/-/pass-gen-1.0.0.tgz",
|
25
|
+
"integrity": "sha512-LhXad3PZKEOThomMqTY1KLmTstklxi2Jx4KOGNG/g9QmSREpYoE3izqCUMjtSIDP//tDss4Fb4h4Nx0peVcvRw=="
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"name": "test",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "Ashutosh Swamy",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"@dummyboy397/pass-gen": "^1.0.0"
|
13
|
+
}
|
14
|
+
}
|