formatferry 0.1.4 → 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/dist/index.js +7 -7
- package/package.json +6 -2
package/dist/index.js
CHANGED
|
@@ -20984,7 +20984,7 @@ h${level}. ${trimmed}
|
|
|
20984
20984
|
case "commonmark":
|
|
20985
20985
|
service = this.commonmarkService;
|
|
20986
20986
|
break;
|
|
20987
|
-
case "
|
|
20987
|
+
case "gdocs":
|
|
20988
20988
|
service = this.customService;
|
|
20989
20989
|
options.customRules.forEach((rule) => {
|
|
20990
20990
|
service.addRule(rule.name, {
|
|
@@ -21074,9 +21074,9 @@ h${level}. ${trimmed}
|
|
|
21074
21074
|
description: "Strict CommonMark specification with indented code blocks"
|
|
21075
21075
|
},
|
|
21076
21076
|
{
|
|
21077
|
-
value: "
|
|
21077
|
+
value: "gdocs",
|
|
21078
21078
|
label: "Custom Rules",
|
|
21079
|
-
description: "
|
|
21079
|
+
description: "Optimized for Google Docs structure"
|
|
21080
21080
|
}
|
|
21081
21081
|
];
|
|
21082
21082
|
}
|
|
@@ -22521,7 +22521,7 @@ var VALID_FORMATS = [
|
|
|
22521
22521
|
"discord",
|
|
22522
22522
|
"reddit",
|
|
22523
22523
|
"confluence",
|
|
22524
|
-
"
|
|
22524
|
+
"gdocs",
|
|
22525
22525
|
"rmarkdown"
|
|
22526
22526
|
];
|
|
22527
22527
|
function detectInputType(filePath) {
|
|
@@ -23105,8 +23105,8 @@ import { readFileSync as readFileSync4 } from "fs";
|
|
|
23105
23105
|
import { resolve, dirname as dirname3 } from "path";
|
|
23106
23106
|
import { fileURLToPath } from "url";
|
|
23107
23107
|
var getVersion = () => {
|
|
23108
|
-
if ("0.1
|
|
23109
|
-
return "0.1
|
|
23108
|
+
if ("1.0.1") {
|
|
23109
|
+
return "1.0.1";
|
|
23110
23110
|
}
|
|
23111
23111
|
try {
|
|
23112
23112
|
const __dirname = dirname3(fileURLToPath(import.meta.url));
|
|
@@ -23119,7 +23119,7 @@ var getVersion = () => {
|
|
|
23119
23119
|
}
|
|
23120
23120
|
};
|
|
23121
23121
|
var VERSION = getVersion();
|
|
23122
|
-
program.name("formatferry").version(VERSION).description("Convert HTML, DOCX, PDF, XLSX, CSV to Markdown").option("-i, --input <path>", "Input file path").option("-o, --output <path>", "Output file path").option("-f, --format <format>", "Markdown format (github, commonmark, slack, discord, reddit, confluence,
|
|
23122
|
+
program.name("formatferry").version(VERSION).description("Convert HTML, DOCX, PDF, XLSX, CSV to Markdown").option("-i, --input <path>", "Input file path").option("-o, --output <path>", "Output file path").option("-f, --format <format>", "Markdown format (github, commonmark, slack, discord, reddit, confluence, gdocs, rmarkdown)", "github").option("--url <url>", "Fetch article from URL").option("--batch <glob>", "Batch convert files (Premium)").option("--output-dir <dir>", "Output directory for batch").option("--toonify", "Compress output to TOON format (Premium)").option("--offline", "Skip entitlement check (use cached or free tier)").option("--timeout <ms>", "License server timeout in milliseconds (default: 2000)", "2000").action(async (options) => {
|
|
23123
23123
|
if (options.batch) {
|
|
23124
23124
|
await batchCommand(options);
|
|
23125
23125
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "formatferry",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "FormatFerry CLI — Convert HTML, DOCX, PDF, XLSX, CSV to Markdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -30,7 +30,11 @@
|
|
|
30
30
|
"dompurify": "^3.3.1",
|
|
31
31
|
"env-paths": "^3.0.0",
|
|
32
32
|
"fast-glob": "^3.3.3",
|
|
33
|
-
"
|
|
33
|
+
"jszip": "^3.10.1",
|
|
34
|
+
"linkedom": "^0.18.10",
|
|
35
|
+
"mammoth": "^1.11.0",
|
|
36
|
+
"pdfjs-dist": "^5.4.530",
|
|
37
|
+
"xlsx": "^0.18.5"
|
|
34
38
|
},
|
|
35
39
|
"devDependencies": {
|
|
36
40
|
"@types/dompurify": "^3.0.5",
|