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.
Files changed (2) hide show
  1. package/index.js +5 -2
  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. On success, stdout is only the formatted result (text, markdown, or JSON). Errors go to stderr.
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
- const outStr = renderOutput(data, opts.format);
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.1",
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": ["extraktr", "cli", "extraction"],
9
+ "keywords": [
10
+ "extraktr",
11
+ "cli",
12
+ "extraction"
13
+ ],
10
14
  "engines": {
11
15
  "node": ">=18.0.0"
12
16
  },
13
- "files": ["index.js", "README.md"],
17
+ "files": [
18
+ "index.js",
19
+ "README.md"
20
+ ],
14
21
  "bin": {
15
22
  "extraktr": "./index.js"
16
23
  }
17
- }
24
+ }