mduck 1.0.0
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 +176 -0
- package/bin/mduck.js +260455 -0
- package/package.json +43 -0
- package/src/template.html +28 -0
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mduck",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A CLI tool to convert Markdown files into HTML and PDF documents using Tailwind CSS v4 for styling.",
|
|
5
|
+
"files": [
|
|
6
|
+
"bin/",
|
|
7
|
+
"src/template.html",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
10
|
+
"keywords": [
|
|
11
|
+
"markdown",
|
|
12
|
+
"md",
|
|
13
|
+
"html",
|
|
14
|
+
"pdf",
|
|
15
|
+
"converter",
|
|
16
|
+
"cli",
|
|
17
|
+
"tailwind",
|
|
18
|
+
"puppeteer"
|
|
19
|
+
],
|
|
20
|
+
"author": "Jean M. Lescure",
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"bin": {
|
|
23
|
+
"mduck": "./bin/mduck.js"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "bun build src/index.ts --outfile=./bin/mduck.js --format=cjs --target=node",
|
|
27
|
+
"dev": "bun --watch run ./src/index.ts convert test/input/test.md test/output/"
|
|
28
|
+
},
|
|
29
|
+
"type": "module",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/bun": "latest"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"typescript": "^5"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
38
|
+
"citty": "^0.2.1",
|
|
39
|
+
"marked": "^17.0.4",
|
|
40
|
+
"puppeteer": "^24.38.0",
|
|
41
|
+
"tailwindcss": "^4.2.1"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Document</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<article class="prose lg:prose-xl print:prose-sm mx-auto my-8 print:m-0 px-4">
|
|
10
|
+
[BODY]
|
|
11
|
+
</article>
|
|
12
|
+
<style>
|
|
13
|
+
@media print {
|
|
14
|
+
@page {
|
|
15
|
+
margin: 2cm !important; /* Sets a 2cm margin on all sides of every printed page */
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
table {
|
|
19
|
+
border: 1px solid black;
|
|
20
|
+
border-collapse: collapse;
|
|
21
|
+
}
|
|
22
|
+
th, td {
|
|
23
|
+
border: 1px solid black;
|
|
24
|
+
padding: 0.5em;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|