extraktr 1.0.1 → 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/index.js +5 -2
- package/package.json +11 -4
package/index.js
CHANGED
|
@@ -70,7 +70,7 @@ Options:
|
|
|
70
70
|
--help, -h Show this help
|
|
71
71
|
|
|
72
72
|
Notes:
|
|
73
|
-
Do not combine --file and --stdin.
|
|
73
|
+
Do not combine --file and --stdin. JSON stdout is only JSON; text and markdown append a short footer. Errors go to stderr.
|
|
74
74
|
|
|
75
75
|
Examples:
|
|
76
76
|
extraktr extract --file sample.txt
|
|
@@ -322,7 +322,10 @@ async function run() {
|
|
|
322
322
|
process.exit(1);
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
let outStr = renderOutput(data, opts.format);
|
|
326
|
+
if (opts.format === "text" || opts.format === "markdown") {
|
|
327
|
+
outStr = outStr.trimEnd() + "\n\n---\nPowered by Extraktr CLI → https://extraktr.com\n";
|
|
328
|
+
}
|
|
326
329
|
|
|
327
330
|
if (opts.output) {
|
|
328
331
|
try {
|
package/package.json
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extraktr",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Terminal client for Extraktr — calls the same POST /api/extract contract as the web app.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"keywords": [
|
|
9
|
+
"keywords": [
|
|
10
|
+
"extraktr",
|
|
11
|
+
"cli",
|
|
12
|
+
"extraction"
|
|
13
|
+
],
|
|
10
14
|
"engines": {
|
|
11
15
|
"node": ">=18.0.0"
|
|
12
16
|
},
|
|
13
|
-
"files": [
|
|
17
|
+
"files": [
|
|
18
|
+
"index.js",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
14
21
|
"bin": {
|
|
15
22
|
"extraktr": "./index.js"
|
|
16
23
|
}
|
|
17
|
-
}
|
|
24
|
+
}
|