Port HTML-to-Markdown conversion from Oh My Pi's html module using html-to-markdown-rs. Exposes `htmlToMarkdown()` via N-API with options for content cleaning (strip nav/forms/headers/footers) and image skipping. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
789 B
JSON
31 lines
789 B
JSON
{
|
|
"name": "@gsd/native",
|
|
"version": "0.1.0",
|
|
"description": "Native Rust bindings for GSD — high-performance grep via N-API",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"scripts": {
|
|
"build:native": "node ../../native/scripts/build.js",
|
|
"build:native:dev": "node ../../native/scripts/build.js --dev",
|
|
"test": "node --test src/__tests__/grep.test.mjs src/__tests__/html.test.mjs"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"import": "./src/index.ts"
|
|
},
|
|
"./grep": {
|
|
"types": "./src/grep/index.ts",
|
|
"import": "./src/grep/index.ts"
|
|
},
|
|
"./html": {
|
|
"types": "./src/html/index.ts",
|
|
"import": "./src/html/index.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"src"
|
|
],
|
|
"license": "MIT"
|
|
}
|