password-genie-cli 2.0.0 → 2.0.1

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alivelyyy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # password-genie
1
+ # password-genie-cli
2
2
 
3
3
  A simple and secure password generator that creates random, unique passwords based on user-defined length and complexity requirements.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```sh
8
- npm install password-genie
8
+ npm install password-genie-cli
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```js
14
- const passwordGenie = require('password-genie');
14
+ const passwordGenie = require('password-genie-cli');
15
15
 
16
16
  // Generate a password of length 12 with default complexity (lowercase only)
17
17
  const password = passwordGenie.generate(12);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "password-genie-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A simple and secure password generator that creates random, unique passwords based on user-defined length and complexity requirements.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,6 +13,14 @@
13
13
  "crypto"
14
14
  ],
15
15
  "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Alivelyyy/password-genie-cli.git"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/Alivelyyy/password-genie-cli/issues"
22
+ },
23
+ "homepage": "https://github.com/Alivelyyy/password-genie-cli#readme",
16
24
  "devDependencies": {
17
25
  "jest": "^29.0.0"
18
26
  }
package/PUBLISH.md DELETED
@@ -1,68 +0,0 @@
1
- # Publishing Guide
2
-
3
- ## Prerequisites
4
-
5
- - Node.js 14+
6
- - npm account ([sign up](https://www.npmjs.com/signup))
7
-
8
- ## Steps
9
-
10
- ### 1. Log in to npm
11
-
12
- ```sh
13
- npm login
14
- ```
15
-
16
- Enter your username, password, and email when prompted.
17
-
18
- ### 2. Update the version (optional)
19
-
20
- ```sh
21
- # Patch (bug fixes) — 1.0.0 → 1.0.1
22
- npm version patch
23
-
24
- # Minor (new features, backward-compatible) — 1.0.0 → 1.1.0
25
- npm version minor
26
-
27
- # Major (breaking changes) — 1.0.0 → 2.0.0
28
- npm version major
29
- ```
30
-
31
- ### 3. Publish
32
-
33
- ```sh
34
- npm publish
35
- ```
36
-
37
- ### 4. Verify
38
-
39
- Visit `https://www.npmjs.com/package/password-genie` or run:
40
-
41
- ```sh
42
- npm view password-genie
43
- ```
44
-
45
- ## Updating
46
-
47
- Make changes, bump the version, then publish again:
48
-
49
- ```sh
50
- npm version patch
51
- npm publish
52
- ```
53
-
54
- ## Scoped packages (optional)
55
-
56
- If you want to publish under your username scope (e.g. `@yourusername/password-genie`):
57
-
58
- 1. Change `name` in `package.json` to `@yourusername/password-genie`
59
- 2. Run `npm publish --access public`
60
-
61
- ## Useful commands
62
-
63
- | Command | Description |
64
- | ------------------------------ | -------------------------- |
65
- | `npm whoami` | Check logged-in user |
66
- | `npm logout` | Log out |
67
- | `npm unpublish <pkg>@<ver>` | Remove a specific version |
68
- | `npm deprecate <pkg>@<ver> <msg>` | Deprecate a version |
package/test.js DELETED
@@ -1,35 +0,0 @@
1
- const passwordGenie = require('./index');
2
-
3
- describe('passwordGenie', () => {
4
- it('generates a password of the specified length', () => {
5
- const password = passwordGenie.generate(12);
6
- expect(password.length).toBe(12);
7
- });
8
-
9
- it('includes uppercase letters when requested', () => {
10
- const password = passwordGenie.generate(12, { uppercase: true });
11
- expect(password).toEqual(expect.stringMatching(/[A-Z]/));
12
- });
13
-
14
- it('includes numbers when requested', () => {
15
- const password = passwordGenie.generate(12, { numbers: true });
16
- expect(password).toEqual(expect.stringMatching(/[0-9]/));
17
- });
18
-
19
- it('includes special characters when requested', () => {
20
- const password = passwordGenie.generate(12, { specialChars: true });
21
- expect(password).toEqual(expect.stringMatching(/[^a-zA-Z0-9]/));
22
- });
23
-
24
- it('includes all character types when all options enabled', () => {
25
- const password = passwordGenie.generate(20, {
26
- uppercase: true,
27
- numbers: true,
28
- specialChars: true,
29
- });
30
- expect(password.length).toBe(20);
31
- expect(password).toEqual(expect.stringMatching(/[A-Z]/));
32
- expect(password).toEqual(expect.stringMatching(/[0-9]/));
33
- expect(password).toEqual(expect.stringMatching(/[^a-zA-Z0-9]/));
34
- });
35
- });