UNPKG

file2md

Version:

A TypeScript library for converting various document types (PDF, DOCX, XLSX, PPTX, HWP, HWPX) into Markdown with image and layout preservation

92 lines (91 loc) 2.29 kB
{ "name": "file2md", "version": "1.2.19", "description": "A TypeScript library for converting various document types (PDF, DOCX, XLSX, PPTX, HWP, HWPX) into Markdown with image and layout preservation", "main": "dist/index.js", "types": "dist/index.d.ts", "type": "module", "scripts": { "build": "tsc -p tsconfig.build.json", "dev": "ts-node --esm src/index.ts", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint src/**/*.ts", "lint:fix": "eslint src/**/*.ts --fix", "clean": "rimraf dist", "prepublishOnly": "npm run clean && npm run build && npm test", "typecheck": "tsc --noEmit" }, "keywords": [ "markdown", "converter", "pdf", "docx", "xlsx", "pptx", "hwp", "hwpx", "korean", "hangul", "document", "typescript", "layout-preservation", "image-extraction" ], "author": "Ricky", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/ricky-clevi/file2md.git" }, "bugs": { "url": "https://github.com/ricky-clevi/file2md/issues" }, "homepage": "https://github.com/ricky-clevi/file2md#readme", "dependencies": { "fast-xml-parser": "^4.3.2", "file-type": "^16.5.4", "hwp.js": "^0.0.3", "jsdom": "^23.0.0", "jszip": "^3.10.1", "pdf-parse": "^1.1.1", "pdf2pic": "^2.1.4", "react-markdown": "^9.1.0", "remark-gfm": "^4.0.1", "xml2js": "^0.6.2" }, "engines": { "node": ">=18.0.0" }, "devDependencies": { "@eslint/js": "^9.32.0", "@types/jest": "^29.5.0", "@types/jsdom": "^21.1.0", "@types/jszip": "^3.4.1", "@types/node": "^20.0.0", "@types/pdf-parse": "^1.1.5", "@types/xml2js": "^0.4.14", "@typescript-eslint/eslint-plugin": "^8.39.0", "@typescript-eslint/parser": "^8.39.0", "eslint": "^9.32.0", "jest": "^29.7.0", "jest-image-snapshot": "^6.2.0", "rimraf": "^5.0.0", "ts-jest": "^29.1.0", "ts-node": "^10.9.0", "typescript": "^5.3.0", "typescript-eslint": "^8.39.0" }, "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.js", "types": "./dist/index.d.ts" } }, "files": [ "dist", "README.md" ] }