js-generate-password 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,104 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ lerna-debug.log*
8
+
9
+ # Diagnostic reports (https://nodejs.org/api/report.html)
10
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11
+
12
+ # Runtime data
13
+ pids
14
+ *.pid
15
+ *.seed
16
+ *.pid.lock
17
+
18
+ # Directory for instrumented libs generated by jscoverage/JSCover
19
+ lib-cov
20
+
21
+ # Coverage directory used by tools like istanbul
22
+ coverage
23
+ *.lcov
24
+
25
+ # nyc test coverage
26
+ .nyc_output
27
+
28
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29
+ .grunt
30
+
31
+ # Bower dependency directory (https://bower.io/)
32
+ bower_components
33
+
34
+ # node-waf configuration
35
+ .lock-wscript
36
+
37
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
38
+ build/Release
39
+
40
+ # Dependency directories
41
+ node_modules/
42
+ jspm_packages/
43
+
44
+ # TypeScript v1 declaration files
45
+ typings/
46
+
47
+ # TypeScript cache
48
+ *.tsbuildinfo
49
+
50
+ # Optional npm cache directory
51
+ .npm
52
+
53
+ # Optional eslint cache
54
+ .eslintcache
55
+
56
+ # Microbundle cache
57
+ .rpt2_cache/
58
+ .rts2_cache_cjs/
59
+ .rts2_cache_es/
60
+ .rts2_cache_umd/
61
+
62
+ # Optional REPL history
63
+ .node_repl_history
64
+
65
+ # Output of 'npm pack'
66
+ *.tgz
67
+
68
+ # Yarn Integrity file
69
+ .yarn-integrity
70
+
71
+ # dotenv environment variables file
72
+ .env
73
+ .env.test
74
+
75
+ # parcel-bundler cache (https://parceljs.org/)
76
+ .cache
77
+
78
+ # Next.js build output
79
+ .next
80
+
81
+ # Nuxt.js build / generate output
82
+ .nuxt
83
+ dist
84
+
85
+ # Gatsby files
86
+ .cache/
87
+ # Comment in the public line in if your project uses Gatsby and *not* Next.js
88
+ # https://nextjs.org/blog/next-9-1#public-directory-support
89
+ # public
90
+
91
+ # vuepress build output
92
+ .vuepress/dist
93
+
94
+ # Serverless directories
95
+ .serverless/
96
+
97
+ # FuseBox cache
98
+ .fusebox/
99
+
100
+ # DynamoDB Local files
101
+ .dynamodb/
102
+
103
+ # TernJS port file
104
+ .tern-port
@@ -0,0 +1,106 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ lerna-debug.log*
8
+
9
+ # Diagnostic reports (https://nodejs.org/api/report.html)
10
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11
+
12
+ # Runtime data
13
+ pids
14
+ *.pid
15
+ *.seed
16
+ *.pid.lock
17
+
18
+ # Directory for instrumented libs generated by jscoverage/JSCover
19
+ lib-cov
20
+
21
+ # Coverage directory used by tools like istanbul
22
+ coverage
23
+ *.lcov
24
+
25
+ # nyc test coverage
26
+ .nyc_output
27
+
28
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29
+ .grunt
30
+
31
+ # Bower dependency directory (https://bower.io/)
32
+ bower_components
33
+
34
+ # node-waf configuration
35
+ .lock-wscript
36
+
37
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
38
+ build/Release
39
+
40
+ # Dependency directories
41
+ node_modules/
42
+ jspm_packages/
43
+
44
+ # TypeScript v1 declaration files
45
+ typings/
46
+
47
+ # TypeScript cache
48
+ *.tsbuildinfo
49
+
50
+ # Optional npm cache directory
51
+ .npm
52
+
53
+ # Optional eslint cache
54
+ .eslintcache
55
+
56
+ # Microbundle cache
57
+ .rpt2_cache/
58
+ .rts2_cache_cjs/
59
+ .rts2_cache_es/
60
+ .rts2_cache_umd/
61
+
62
+ # Optional REPL history
63
+ .node_repl_history
64
+
65
+ # Output of 'npm pack'
66
+ *.tgz
67
+
68
+ # Yarn Integrity file
69
+ .yarn-integrity
70
+
71
+ # dotenv environment variables file
72
+ .env
73
+ .env.test
74
+
75
+ # parcel-bundler cache (https://parceljs.org/)
76
+ .cache
77
+
78
+ # Next.js build output
79
+ .next
80
+
81
+ # Nuxt.js build / generate output
82
+ .nuxt
83
+ dist
84
+
85
+ # Gatsby files
86
+ .cache/
87
+ # Comment in the public line in if your project uses Gatsby and *not* Next.js
88
+ # https://nextjs.org/blog/next-9-1#public-directory-support
89
+ # public
90
+
91
+ # vuepress build output
92
+ .vuepress/dist
93
+
94
+ # Serverless directories
95
+ .serverless/
96
+
97
+ # FuseBox cache
98
+ .fusebox/
99
+
100
+ # DynamoDB Local files
101
+ .dynamodb/
102
+
103
+ # TernJS port file
104
+ .tern-port
105
+
106
+ package-lock.json
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "js-generate-password",
3
+ "version": "0.0.3",
4
+ "private": false,
5
+ "description": "Password Generator for using in javascirpt/typscript based projects.",
6
+ "main": "index.js",
7
+ "bin": "index.js",
8
+ "scripts": {
9
+ "test": "echo \"Error: no test specified\" && exit 1"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/ahmadjoya/js-generate-password.git"
14
+ },
15
+ "keywords": [
16
+ "js password generator",
17
+ "generate password",
18
+ "password generator",
19
+ "random password",
20
+ "password",
21
+ "generator",
22
+ "unique",
23
+ "nodejs",
24
+ "nextjs",
25
+ "react",
26
+ "reactjs",
27
+ "random"
28
+ ],
29
+ "author": "Ahmad Joya",
30
+ "license": "ISC",
31
+ "bugs": {
32
+ "url": "https://github.com/ahmadjoya/js-generate-password/issues"
33
+ },
34
+ "homepage": "https://github.com/ahmadjoya/js-generate-password#readme"
35
+ }
package/README.md CHANGED
@@ -25,8 +25,8 @@ or
25
25
  For the password to be generated, **parameters** are able to pass as an optional **options** object.
26
26
 
27
27
  ```javascript
28
- import PasswordGenerator from "js-generate-password";
29
- const password = PasswordGenerator({
28
+ import GeneratePassword from "js-generate-password";
29
+ const password = GeneratePassword({
30
30
  length: 14,
31
31
  symbols: true,
32
32
  });
@@ -74,8 +74,8 @@ Any of these can be passed into the options object for each function.
74
74
  - **No Options passed.**
75
75
 
76
76
  ```javscript
77
- const PasswordGenerator = require("js-generate-password");
78
- const password = PasswordGenerator();
77
+ const GeneratePassword = require("js-generate-password");
78
+ const password = GeneratePassword();
79
79
  console.log(password);
80
80
  ```
81
81
 
@@ -91,7 +91,7 @@ xDU6izb3PV;
91
91
  options={
92
92
  length : 25;
93
93
  }
94
- password = PasswordGenerator(options);
94
+ password = GeneratePassword(options);
95
95
  console.log(password);
96
96
  ```
97
97
 
@@ -107,7 +107,7 @@ U4c3KpQP5UrbZgTcrqMgFeI3R;
107
107
  options={
108
108
  exclude : 'abc567XYZ';
109
109
  }
110
- password = PasswordGenerator(options);
110
+ password = GeneratePassword(options);
111
111
  console.log(password);
112
112
  ```
113
113
 
package/index.js CHANGED
@@ -2,7 +2,7 @@ const passwords = require("./lib/password-generator.js");
2
2
  const errorCheck = require("./lib/check-options-error");
3
3
  const processOptions = require("./lib/process-options");
4
4
 
5
- function PasswordGenerator(options) {
5
+ function GeneratePassword(options) {
6
6
  options = processOptions(options);
7
7
 
8
8
  errorCheck(options);
@@ -13,6 +13,6 @@ function PasswordGenerator(options) {
13
13
  return pswd;
14
14
  }
15
15
 
16
- PasswordGenerator({ exclude: "abc567XYZ" });
16
+ GeneratePassword({ exclude: "abc567XYZ" });
17
17
 
18
- module.exports = PasswordGenerator;
18
+ module.exports = GeneratePassword;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-generate-password",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "description": "Password Generator for using in javascirpt/typscript based projects.",
6
6
  "main": "index.js",