subtrack 1.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 +21 -0
- package/README.md +56 -0
- package/package.json +36 -0
- package/pnpm-workspace.yaml +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 nazozokc
|
|
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
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# subtrack
|
|
2
|
+
|
|
3
|
+
A CLI tool to manage your subscription services from the terminal.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- List all subscriptions in a formatted table
|
|
8
|
+
- Add a subscription interactively (name, price, currency, cycle, tags)
|
|
9
|
+
- Delete a subscription by ID
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# List all subscriptions
|
|
15
|
+
bunx subtrack list
|
|
16
|
+
|
|
17
|
+
# Add a new subscription (interactive prompts)
|
|
18
|
+
bunx subtrack add
|
|
19
|
+
|
|
20
|
+
# Delete a subscription by ID
|
|
21
|
+
bunx subtrack delete <id>
|
|
22
|
+
|
|
23
|
+
# List tags subscriptions
|
|
24
|
+
bunx subtrack tags <tags>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
> [!TIP]
|
|
28
|
+
> The binary name is `subtrack`. Run via `bunx subtrack <command>` after `bun install`.
|
|
29
|
+
|
|
30
|
+
## Data
|
|
31
|
+
|
|
32
|
+
Subscriptions are stored in `~/.config/subtrack/subtrack.db`.
|
|
33
|
+
|
|
34
|
+
## Development
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Install dependencies
|
|
38
|
+
bun install
|
|
39
|
+
|
|
40
|
+
# Run directly
|
|
41
|
+
bun run src/index.ts
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Install
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
bun install
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then link globally if you want:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
bun link
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Now you can use `sb` directly from anywhere.
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "subtrack",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"bin": {
|
|
7
|
+
"subsc-cli": "./dist/index.mjs"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/nazozokc/subsc-cli.git"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@inquirer/prompts": "^8.5.2",
|
|
18
|
+
"better-sqlite3": "^11.0.0",
|
|
19
|
+
"cli-table3": "^0.6.5",
|
|
20
|
+
"commander": "^15.0.0",
|
|
21
|
+
"consola": "^3.4.2"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/better-sqlite3": "^7.6.12",
|
|
25
|
+
"tsdown": "^0.22.2",
|
|
26
|
+
"tsx": "^4.19.0",
|
|
27
|
+
"typescript": "^5",
|
|
28
|
+
"vitest": "^3.0.0"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsdown",
|
|
32
|
+
"start": "tsx src/index.ts",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"test:watch": "vitest"
|
|
35
|
+
}
|
|
36
|
+
}
|