@fusionfroze/fset 1.0.0 → 1.0.2

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 FusionFroze
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
@@ -11,17 +11,17 @@ You use different _applications_ with different _file(s)_ or _tab(s)_ for differ
11
11
  **Install globally:**
12
12
 
13
13
  ```shell
14
- $ npm i -g @fusionfroze/fset
14
+ $ npm i -g @fusionfroze/fset
15
15
  ```
16
16
 
17
17
  **For local development:**
18
18
 
19
19
  ```shell
20
- $ npm install
20
+ $ npm install
21
21
  ```
22
22
 
23
23
  ```shell
24
- $ npm link
24
+ $ npm link
25
25
  ```
26
26
 
27
27
  ## How to use it
@@ -29,62 +29,76 @@ You use different _applications_ with different _file(s)_ or _tab(s)_ for differ
29
29
  ### Setting up a new Environment
30
30
 
31
31
  ```shell
32
- $ fset create demo
32
+ $ fset create demo
33
33
  ```
34
34
 
35
35
  This will open the input interface
36
36
 
37
37
  ```shell
38
- $ fset create demo
39
- Application 1
40
- ? Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
38
+ $ fset create demo
39
+ Application 1
40
+ ? Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
41
41
  ```
42
42
 
43
43
  Here you have to enter the path that **exactly** points to the location of the application.
44
44
  Then you will be asked to enter URL if you need it.
45
45
 
46
+ (**Tip**: If you can't find the path, you can just drag and drop the app into your terminal to paste the path.)
47
+
46
48
  ```shell
47
- $ fset create demo
48
- Application 1
49
- ✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
50
- Enter URL(s) or file path(s) you want the app to open with.
51
- Press enter with an empty input to exit the input interface.
52
- ? URL-1: https://clandor.com
49
+ $ fset create demo
50
+ Application 1
51
+ ✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
52
+ Enter URL(s) or file path(s) you want the app to open with.
53
+ Press enter with an empty input to exit the input interface.
54
+ ? URL-1: https://clandor.com
53
55
  ```
54
56
 
55
57
  You can exit the input interface for the current application by pressing **enter** with an **empty input**.
56
58
 
57
59
  ```shell
58
- $ fset create demo
59
- Application 1
60
- ✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
61
- Enter URL(s) or file path(s) you want the app to open with.
62
- Press enter with an empty input to exit the input interface.
63
- ✔ URL-1: https://clandor.com
64
- ✔ URL-2:
65
- ? Add another app? (Y/n)
60
+ $ fset create demo
61
+ Application 1
62
+ ✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
63
+ Enter URL(s) or file path(s) you want the app to open with.
64
+ Press enter with an empty input to exit the input interface.
65
+ ✔ URL-1: https://clandor.com
66
+ ✔ URL-2:
67
+ ? Add another app? (Y/n)
66
68
  ```
67
69
 
68
70
  Now you will be given a choice, you can either add a new application or can exit the interface by entering **n**.
69
71
  If you choose **n**, a success message will show that your new environment is set up successfully. Or, alternatively you can continue adding more application requried for the task.
70
72
 
71
73
  ```shell
72
- $ fset create demo
73
- Application 1
74
- ✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
75
- Enter URL(s) or file path(s) you want the app to open with.
76
- Press enter with an empty input to exit the input interface.
77
- ✔ URL-1: https://clandor.com
78
- ✔ URL-2:
79
- ✔ Add another app? No
74
+ $ fset create demo
75
+ Application 1
76
+ ✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
77
+ Enter URL(s) or file path(s) you want the app to open with.
78
+ Press enter with an empty input to exit the input interface.
79
+ ✔ URL-1: https://clandor.com
80
+ ✔ URL-2:
81
+ ✔ Add another app? No
82
+
83
+ demo created successfully.
84
+ ```
85
+
86
+ If you accidentally press **y** when you don't want to add any more applications, you can simply type **exit** to exit the input interface and save the environment you are creating.
87
+
88
+ ```shell
89
+ $ fset create demo
90
+ ...
91
+ ✔ Add another app? Yes
92
+ Application 2
93
+ ✔ Enter the path to the app: exit
80
94
 
81
- demo created successfully.
95
+ demo created successfully.
82
96
  ```
83
97
 
84
98
  ### Opening an Environment
85
99
 
86
100
  ```shell
87
- $ fset open demo
101
+ $ fset open demo
88
102
  ```
89
103
 
90
104
  This command will open all the applications with set URL(s) or file(s) instantly.
@@ -92,43 +106,43 @@ This command will open all the applications with set URL(s) or file(s) instantly
92
106
  ### Removing an Environment
93
107
 
94
108
  ```shell
95
- $ fset remove demo
109
+ $ fset remove demo
96
110
  ```
97
111
 
98
- You will be prompted once to confirm the operation. Once removed the action is irreversible.
112
+ You will be prompted once to confirm the operation. Once removed, the action is irreversible.
99
113
 
100
114
  ### List all the Environments set up in your machine
101
115
 
102
116
  ```shell
103
- $ fset ls
117
+ $ fset ls
104
118
  ```
105
119
 
106
120
  This will list all the Environments with the applications in each of them.
107
121
  Output -
108
122
 
109
123
  ```shell
110
- demo
111
- --Google Chrome
124
+ demo
125
+ --Google Chrome
112
126
  ```
113
127
 
114
128
  To see detailed list, with application path and URL(s) or file(s) for each application, type this command -
115
129
 
116
130
  ```shell
117
- $ fset ls -l
131
+ $ fset ls -l
118
132
  ```
119
133
 
120
134
  or
121
135
 
122
136
  ```shell
123
- $ fset ls -long
137
+ $ fset ls -long
124
138
  ```
125
139
 
126
140
  Output -
127
141
 
128
142
  ```shell
129
- demo
130
- --Google Chrome
131
- > App Path: "C:\Users\Public\Desktop\Google Chrome.lnk"
132
- > URls:
133
- 1: https://clandor.com
143
+ demo
144
+ --Google Chrome
145
+ > App Path: "C:\Users\Public\Desktop\Google Chrome.lnk"
146
+ > URls:
147
+ 1: https://clandor.com
134
148
  ```
@@ -34,6 +34,12 @@ async function createEnv(newEnv) {
34
34
  message: chalk.greenBright("Enter the path to the app:"),
35
35
  required: true,
36
36
  });
37
+
38
+ if (appPath === "exit") {
39
+ gettingNewApplication = false;
40
+ continue;
41
+ }
42
+
37
43
  let gettingURLs = true;
38
44
  let urlNumber = 1;
39
45
  const urls = [];
package/commands/ls.js CHANGED
@@ -22,7 +22,7 @@ export default function ls({ long }) {
22
22
  for (const application of space) {
23
23
  const appName = extractAppName(application);
24
24
 
25
- console.log(chalk.magentaBright(" -- " + appName));
25
+ console.log(chalk.magentaBright(" - " + appName));
26
26
 
27
27
  if (long) {
28
28
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusionfroze/fset",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Launch your required environment instantly",
5
5
  "license": "ISC",
6
6
  "author": "FusionFroze",
@@ -21,5 +21,19 @@
21
21
  },
22
22
  "bin": {
23
23
  "fset": "./index.js"
24
+ },
25
+ "keywords": [
26
+ "fset",
27
+ "cli",
28
+ "terminal",
29
+ "productivity"
30
+ ],
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/FusionFroze/fset"
34
+ },
35
+ "homepage": "https://github.com/FusionFroze/fset/#readme",
36
+ "bugs": {
37
+ "url": "https://github.com/FusionFroze/fset/issues"
24
38
  }
25
39
  }