web-to-markdown 0.1.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/LICENSE +21 -0
- package/README.md +133 -0
- package/dist/bin/web-to-markdown.js +1590 -0
- package/dist/index.d.ts +222 -0
- package/dist/index.js +1487 -0
- package/package.json +83 -0
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "web-to-markdown",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Convert any web page to clean Markdown. Built for developers and LLM pipelines.",
|
|
5
|
+
"author": "Nidhi Singh",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/nidhi-singh02/mark-it-down.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/nidhi-singh02/mark-it-down#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/nidhi-singh02/mark-it-down/issues"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"bin": {
|
|
18
|
+
"web-to-markdown": "./dist/bin/web-to-markdown.js"
|
|
19
|
+
},
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"types": "./dist/index.d.ts"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsup",
|
|
33
|
+
"dev": "tsup --watch",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"test:watch": "vitest",
|
|
36
|
+
"test:coverage": "vitest run --coverage",
|
|
37
|
+
"typecheck": "tsc --noEmit",
|
|
38
|
+
"lint": "eslint src/ tests/ bin/",
|
|
39
|
+
"format": "prettier --write src/ tests/ bin/",
|
|
40
|
+
"format:check": "prettier --check src/ tests/ bin/",
|
|
41
|
+
"validate": "npm run lint && npm run format:check && npm run typecheck && npm run test",
|
|
42
|
+
"prepublishOnly": "npm run validate && npm run build"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"markdown",
|
|
46
|
+
"html",
|
|
47
|
+
"converter",
|
|
48
|
+
"web",
|
|
49
|
+
"cli",
|
|
50
|
+
"llm",
|
|
51
|
+
"readability"
|
|
52
|
+
],
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=20.0.0"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@joplin/turndown-plugin-gfm": "^1.0.64",
|
|
59
|
+
"@mozilla/readability": "^0.6.0",
|
|
60
|
+
"commander": "^14.0.0",
|
|
61
|
+
"linkedom": "^0.18.0",
|
|
62
|
+
"turndown": "^7.2.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@eslint/js": "^10.0.1",
|
|
66
|
+
"@types/node": "^22.0.0",
|
|
67
|
+
"@types/turndown": "^5.0.5",
|
|
68
|
+
"eslint": "^10.0.2",
|
|
69
|
+
"prettier": "^3.8.1",
|
|
70
|
+
"tsup": "^8.5.0",
|
|
71
|
+
"typescript": "^5.7.0",
|
|
72
|
+
"typescript-eslint": "^8.56.1",
|
|
73
|
+
"vitest": "^4.0.18"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"playwright": "^1.58.2"
|
|
77
|
+
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"playwright": {
|
|
80
|
+
"optional": true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|