readr-cli 1.0.1 → 1.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.
- package/README.md +7 -7
- package/dist/index.js +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,13 +11,13 @@ npm install -g readr-cli
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
readr add # Add a new book
|
|
15
|
+
readr start # Start a reading session
|
|
16
|
+
readr pause # Pause or resume current session
|
|
17
|
+
readr stop # End session & log pages read
|
|
18
|
+
readr list # All books with progress & ETA
|
|
19
|
+
readr stats # Overall reading statistics
|
|
20
|
+
readr help # Show help
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Features
|
package/dist/index.js
CHANGED
|
@@ -177,13 +177,13 @@ function showHelp() {
|
|
|
177
177
|
header();
|
|
178
178
|
console.log(chalk.bold(' Commands:\n'));
|
|
179
179
|
const cmds = [
|
|
180
|
-
['
|
|
181
|
-
['
|
|
182
|
-
['
|
|
183
|
-
['
|
|
184
|
-
['
|
|
185
|
-
['
|
|
186
|
-
['
|
|
180
|
+
['readr add', 'Add a new book'],
|
|
181
|
+
['readr start', 'Start a reading session'],
|
|
182
|
+
['readr pause', 'Pause or resume current session'],
|
|
183
|
+
['readr stop', 'End session & log pages read'],
|
|
184
|
+
['readr list', 'List all books with progress'],
|
|
185
|
+
['readr stats', 'Overall reading statistics'],
|
|
186
|
+
['readr help', 'Show this help'],
|
|
187
187
|
];
|
|
188
188
|
for (const [cmd, desc] of cmds) {
|
|
189
189
|
console.log(` ${chalk.bold.green(cmd.padEnd(14))} ${chalk.gray(desc)}`);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "readr-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Beautiful CLI to track reading sessions, speed, and book completion ETA",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
7
|
+
"readr": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "tsx src/index.ts",
|