Convert the project to a TypeScript SDK. * Add `tsconfig.json` with TypeScript compiler options. * Add `package.json` with TypeScript dependencies and build scripts. * Add `src/markitdown/index.ts` to convert `src/markitdown/__main__.py` to TypeScript. * Add `src/markitdown/markitdown.ts` to convert `src/markitdown/_markitdown.py` to TypeScript. * Remove Python-specific files: `pyproject.toml`, `Dockerfile`, `src/markitdown/__main__.py`, `src/markitdown/_markitdown.py`, `src/markitdown/__init__.py`, `src/markitdown/__about__.py`, `src/markitdown/py.typed`. * Update `README.md` to include TypeScript SDK usage instructions.
19 lines
434 B
JSON
19 lines
434 B
JSON
{
|
|
"name": "markitdown",
|
|
"version": "0.0.1",
|
|
"description": "Utility tool for converting various files to Markdown",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"author": "Adam Fourney",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"axios": "^0.21.1"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^4.4.3"
|
|
}
|
|
}
|