{"_id":"@cognipeer/to-markdown","_rev":"18-9da346ee8f9bff7f95bfaf152a2de9c9","name":"@cognipeer/to-markdown","dist-tags":{"latest":"3.4.2"},"versions":{"0.0.1":{"name":"@cognipeer/to-markdown","version":"0.0.1","author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@0.0.1","maintainers":[{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"}],"dist":{"shasum":"a77e48555a93a23c2b9e70f20d631329c9a5fe14","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-0.0.1.tgz","fileCount":5,"integrity":"sha512-t67mhYtQv0yoFBbmM7uJxW8RPc+1TwppnxvMRInvRwXjUW7/GiSkEra6jySZ7l/WQifo1QowbxGJLQ0W3rg2fA==","signatures":[{"sig":"MEUCIB1jHOne+7Zb0fKlrV8t3cHA8bbZ91jW7QbaPyz+avqdAiEA5C4VM2iBy/X7PDTAr0G3VYFvB9ro8cuUl7rh349NQBk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6925500},"main":"src/index.js","type":"module","exports":{"import":"./src/index.js","require":"./src/index.cjs"},"gitHead":"47531264e0a25d596e1f05eaad603063160c6eb4","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c","prepublishOnly":"npm i && npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"sercanuste","email":"sercanuste@hotmail.com"},"_npmVersion":"10.8.2","directories":{},"_nodeVersion":"20.18.3","dependencies":{"xlsx":"^0.18.5","sharp":"^0.33.5","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","papaparse":"^5.5.2","mime-types":"^2.1.35","music-metadata":"^11.0.5","@opendocsg/pdf2md":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.39.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_0.0.1_1744058098337_0.3324224137309568","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@cognipeer/to-markdown","version":"1.0.0","author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@1.0.0","maintainers":[{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://github.com/Cognipeer/to-markdown#readme","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"5d8ca9052ca2f8761ecf36a7b8ac0eea3c96badf","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-1.0.0.tgz","fileCount":6,"integrity":"sha512-hoQcD2s98hE8/PSWLIKtWGeiYLNPeuIcF2deIj34YhkkouIIMFhY2IfTxwaBWZ4Pwh8GVGXyQAL6mQFTJo2FMQ==","signatures":[{"sig":"MEQCIBIxLK+DvXat5nVlUjiGK7VieSO0vYzVZ21nQoheanGKAiBER9D8uHtV7jckMAdT1OavZ5uEfTsbW7KI4dVjEF/Dvw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6930503},"main":"src/index.js","type":"module","exports":{"import":"./src/index.js","require":"./src/index.cjs"},"gitHead":"7d63c02f45956f92f3b4694e548d4e70c9ed5d29","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c","prepublishOnly":"npm i && npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"sercanuste","email":"sercanuste@hotmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"10.8.2","description":"A versatile utility library for converting various file formats to Markdown.","directories":{},"_nodeVersion":"20.18.3","dependencies":{"xlsx":"^0.18.5","sharp":"^0.33.5","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","papaparse":"^5.5.2","mime-types":"^2.1.35","music-metadata":"^11.0.5","@opendocsg/pdf2md":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.39.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_1.0.0_1746100803239_0.04660588492310547","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cognipeer/to-markdown","version":"1.0.1","author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@1.0.1","maintainers":[{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://github.com/Cognipeer/to-markdown#readme","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"facf0c9a8b9d10297e8874abe8b02a11c24abdcb","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-1.0.1.tgz","fileCount":6,"integrity":"sha512-aF8HopS41B84NjeQDiLynk3uLoTU9YJ7kvS8GOwrwqQQUc6rccTfvc/fM+TJ4+ajVObvEMIcA+GX1CVvAU7cNA==","signatures":[{"sig":"MEUCIQDlp2m6C4r9ypiXKjtuAUasCnur1JC6YIG57PzBSEMgiAIgCnjohPX8kzmzeQxbDPWGqOc6xF8cZeBF+drYs8aVZUk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6930593},"main":"src/index.js","type":"module","exports":{"import":"./src/index.js","require":"./src/index.cjs"},"gitHead":"fd911419368f0fa7dd8d720edab5057f606927de","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c","prepublishOnly":"npm i && npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"sercanuste","email":"sercanuste@hotmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"10.8.2","description":"A versatile utility library for converting various file formats to Markdown.","directories":{},"_nodeVersion":"20.18.3","dependencies":{"xlsx":"^0.18.5","sharp":"^0.33.5","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","papaparse":"^5.5.2","mime-types":"^2.1.35","music-metadata":"^11.0.5","@opendocsg/pdf2md":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.39.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_1.0.1_1748006978825_0.5108317915381637","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@cognipeer/to-markdown","version":"2.0.0","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@2.0.0","maintainers":[{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"37eae2faf6890bd26c5667760e03dbdde147d98e","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-2.0.0.tgz","fileCount":57,"integrity":"sha512-yW4Mt3NhOPktW5V+7B/ufKDYWphpSXvt2PqSHLdDjM1EC97cEu12rnAUiXVpbR85I+C4DV8fkpOe1dLyB7Qu4A==","signatures":[{"sig":"MEYCIQCLmbA77W1a5YrSoVDfeiHLokg4WTriOG+QfTeFUgvL1wIhAMuAwaLJ5r+h1nyGWxr8R2gthgayxhovhb1k8dxE0tjP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":157895},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=16.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"9c8dbaf36c3fe97cab295b840fea04b73cc0003d","scripts":{"dev":"tsc --watch","test":"echo \"Error: no test specified\" && exit 1","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"10.9.3","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"22.19.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.33.5","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","papaparse":"^5.5.2","mime-types":"^2.1.35","music-metadata":"^11.0.5","@opendocsg/pdf2md":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_2.0.0_1759998631120_0.4057758318782012","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@cognipeer/to-markdown","version":"2.0.1","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@2.0.1","maintainers":[{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"e2b45586990a0a4cd4054b05b2338d6f5dd79ade","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-2.0.1.tgz","fileCount":57,"integrity":"sha512-jM2EwsZv/Wnlkj2AC6+2g1V1LQ/vPAMeVM6YsRQeg6B1Vd7LBEH07SKMTTp6cPeaNPe2w8teBRA4JUDy5C0l1g==","signatures":[{"sig":"MEUCIQDAE8kmm0hkaMXJgW55wcCi3P8w8+xY/JordvlO7pO32gIgfoSuk28zLCoLUPF9CGlD3VXHGnjhiD8OaEalF5dPqZ4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":339513},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=16.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"f856a031e2be5649fc03fab8ef3a6abf6d3d3fa3","scripts":{"dev":"tsc --watch","test":"echo \"Error: no test specified\" && exit 1","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"10.9.3","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"22.19.0","dependencies":{"xlsx":"^0.18.5","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","papaparse":"^5.5.2","image-size":"^2.0.2","mime-types":"^2.1.35","music-metadata":"^11.0.5","@opendocsg/pdf2md":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_2.0.1_1759999260154_0.39129334399065563","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@cognipeer/to-markdown","version":"3.0.0","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.0.0","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"da8963e79585847bfa31d20b5899360697a82ac8","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.0.0.tgz","fileCount":101,"integrity":"sha512-tXozYiZdI2BDih7Ia0egspPei0t4wIuUH7yIM7obP28fo/tt/kmdq/zGe9ZEjlQJmgwu+elm/gn2zqrN0QBZrg==","signatures":[{"sig":"MEUCIQDyWnNanyVFFDDYIKKBTwZ8+OeJNSYRY4APH1GACg+UNwIgFKq3jmqktnCwQ4oeBsOp1mmFuifwJYsKZDkAj+Fook8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":456323},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"6f095d02a11407c5affeb38d473c38375472ef96","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"sercanuste","email":"sercanuste@hotmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"10.2.4","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"20.11.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.0.0_1782472452157_0.31627873735990275","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@cognipeer/to-markdown","version":"3.0.1","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.0.1","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"055a38b6dd82d3a50bb9b2944882fc1b2e572cf5","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.0.1.tgz","fileCount":101,"integrity":"sha512-6fIeS+O4xrQEWbStTReoBgiNswck9YPTsPD6+3uTybHjHRrNv9SJ61UZKlcBy6aV8Q+SL9Y8Z7kUkwI+Yif3xQ==","signatures":[{"sig":"MEUCIFCQXu1JoTt3LO+B+iG58cqw5BO0fRzfgZTp019yjsuyAiEAvFxRRyl6kE4iBs71XguUdZK7b1fkQ4hOYwh1VT5Ct0Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":456323},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"6f095d02a11407c5affeb38d473c38375472ef96","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.6.1","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.10.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.0.1_1783000330193_0.8528264046597329","host":"s3://npm-registry-packages-npm-production"}},"3.0.2":{"name":"@cognipeer/to-markdown","version":"3.0.2","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.0.2","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"bdf8d00e9c9cfa40e3f6c43b1d532962ca259b15","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.0.2.tgz","fileCount":101,"integrity":"sha512-DxeLQ7gSFcyHshGB52jV/uQzP8GN8bpHre2dx4tDNbe1kwnK7ok4qgsFWbdus3Gk/zvL5XDVNBa3Yn1cxI08pQ==","signatures":[{"sig":"MEQCIQDFfSzgguWYesJAwHi1/ciQ78Ao8ZzRr75V3/9F31j1kgIfXe4kLm06LgE/3cy0mCrhl803WVLubEXLIztOaHwk2w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":461929},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"cbdd5773a5198a8ccb453d4cbef0c068d66bef39","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.6.1","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.10.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.0.2_1783002391455_0.9880288940574287","host":"s3://npm-registry-packages-npm-production"}},"3.0.3":{"name":"@cognipeer/to-markdown","version":"3.0.3","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.0.3","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"4c76fe2b056522b99bcbf32f38345ed252e75cf3","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.0.3.tgz","fileCount":101,"integrity":"sha512-+t7q9ZjimKnVqfNYJnL+7QAuYUTOdaTZBiWvLKVCKL+rjR7asjiNeZNRZ8aA/+OUjc3eucI1BHE/0/TfFpFYLg==","signatures":[{"sig":"MEUCIQC1OTETvwDQIQuOcSqYuy/xVFj6FEpsjzX67drupb9PiAIgSGqsVWQhh37BoQzX4lcC3BF8hpL/qq9H3dzVxXiCV/M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":456909},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"3455a93eaf6f5298ab64bd86e418070374f04245","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.6.1","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.10.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","canvas":"^3.2.3","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.0.3_1783321275958_0.4057433474818275","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"@cognipeer/to-markdown","version":"3.1.0","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.1.0","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"27de05850c6980dc15f6a836bbfbfe9c089dc507","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.1.0.tgz","fileCount":101,"integrity":"sha512-qMGueqJOBTihMyQS29ictCWsFr8KL19P8wYRI2eTCYMvxcqEoiOAhLPdeje1+mmLl6825wZVKbHueRBZyJsbHw==","signatures":[{"sig":"MEQCIGj8e726q7Ll7Kf3xo4jbiS5AoqlSxQziAawkPE1Z5YCAiBtAdVjN3/OHQ9H+BQfkvpFzAH8GkB7iketuh2KMxw9Jg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":466704},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"51b4ee0a2a5f2a7c6176813e0acc69da514664f3","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.6.1","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.10.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","canvas":"^3.2.3","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.1.0_1784272925389_0.20034621334602543","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"@cognipeer/to-markdown","version":"3.1.1","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.1.1","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"6d540e0baeb04a548b5145d64faf43acd5dd72c3","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.1.1.tgz","fileCount":101,"integrity":"sha512-s2gcNJ4txgbjFCWhAyBQ4XsDlv6cYh5RlCp4KIvGqAeqTjYghrdcyA9k8BltlCvEPGHR3HFjQVLMLl01/TXc3g==","signatures":[{"sig":"MEUCIQDKXcXB3sd9hFSXZJEaKgeRy84Kdy8HzEY77La902WmgwIgDceu8rdlUgxLIc+JdlYGFx6yH89ZZNI/dM/3amV7oe8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":466851},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"c6194aec2788c7db9a86bbf9a922fad509e49f49","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.6.1","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.10.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","canvas":"^3.2.3","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.1.1_1785716367007_0.5048567424849912","host":"s3://npm-registry-packages-npm-production"}},"3.2.0":{"name":"@cognipeer/to-markdown","version":"3.2.0","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.2.0","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"da67cd9b8bd6cff0f4b7d89b5702c1633e87ceb6","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.2.0.tgz","fileCount":101,"integrity":"sha512-Ga4sISmAJO4VQVjoHGcf147HZeTgtqI0S4fB02St1i0Z+5hJYq3HXF1WJZiSwprM9zhVzyRXnCNlXVVot5HQUA==","signatures":[{"sig":"MEUCIQDJty9ASsKMiFzvabrGnIASI5lkXP1Fu5l+kiK2oyNFzAIgRxR4n8vrLKFZlYkTYAkTmFdHgmN5jiUhH5kENgzT/98=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":478091},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"1e7c1c10eaf051939a78ea1f2d7b6316ca8fe8d9","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"sercanuste","email":"sercanuste@hotmail.com"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"10.9.8","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"22.22.3","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","canvas":"^3.2.3","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.2.0_1786952744420_0.5990550082427601","host":"s3://npm-registry-packages-npm-production"}},"3.2.1":{"name":"@cognipeer/to-markdown","version":"3.2.1","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.2.1","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"e959518460d62b083b79fa1457f85f7d613dbc48","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.2.1.tgz","fileCount":101,"integrity":"sha512-6wJeOtrTFGyFy1ZnC7RLnzZ17L6/94wg2DMZVm6v9VtDc9gJlL48qsvPQ4GUXbGVObEfczbtIH0EwTjtX9C+uA==","signatures":[{"sig":"MEQCIAsLL+6oQXlj47hT4HkUS925IKDAsSzJv9eHQKCrjdBfAiBhrcobZq/3N+gSTloiAb1Tujr+B4rffMCE6QvCd/0RXQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cognipeer%2fto-markdown@3.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":479989},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"c9066cf7de0b6264231acd580e6669d43a8b8cc2","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:186ed3a3-c992-40c1-bc80-c400a7018c5d"}},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.17.0","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.19.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","canvas":"^3.2.3","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.2.1_1787810348827_0.6437027572168379","host":"s3://npm-registry-packages-npm-production"}},"3.2.2":{"name":"@cognipeer/to-markdown","version":"3.2.2","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.2.2","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"422a0e3fae6d760edbf45dc7bdc06153291d4c0b","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.2.2.tgz","fileCount":101,"integrity":"sha512-FA3vG29FX5n2KYydQYUgVcEE8hwk1tbouF+tHBZEDUfnAQ2q/0LHuZb5+eCaMTx+5GR/0vKpPA3IaTd4pz6Bbw==","signatures":[{"sig":"MEUCIQDDh09WwlYHl57NJf7iWUa6n3u4H6FkpUwnqa9jx5UyZwIgAbSBZildaTKu5GsWtqpmOO023j5uoAKNSYulRUie2Sc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cognipeer%2fto-markdown@3.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":479993},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"46f6d737fccd4ffd065f321d1861e2c8bb91b8fd","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:186ed3a3-c992-40c1-bc80-c400a7018c5d"}},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.17.0","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.19.0","dependencies":{"xlsx":"^0.18.5","sharp":"^0.34.5","unpdf":"^0.12.1","canvas":"^3.2.3","xml2js":"^0.6.2","adm-zip":"^0.5.16","cheerio":"^1.0.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^16.5.4","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","image-size":"^2.0.2","mime-types":"^2.1.35","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/adm-zip":"^0.5.5","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/image-size":"^0.7.0","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.2.2_1787810889880_0.973075656589065","host":"s3://npm-registry-packages-npm-production"}},"3.3.0":{"name":"@cognipeer/to-markdown","version":"3.3.0","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","_id":"@cognipeer/to-markdown@3.3.0","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"homepage":"https://cognipeer.github.io/to-markdown","bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"dist":{"shasum":"c07bc33546d3323c511c25f10a98f9cc37eae137","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.3.0.tgz","fileCount":101,"integrity":"sha512-OGuqwdOeRCqVk5W/Xq3i5SR45PBK/bW1H9zePQpUThYTVKSiro5WwM94LctmVZDCpjCDANY+7kvjyvs4faabtA==","signatures":[{"sig":"MEYCIQCEyvyXOjxsGeRv1mrMhjp2oJXGeCQv3r1CK3lsT9RvJwIhAMb7W1qsRVf3JKCmyVWrFr1Jly0Lqs7sNmyeYSKVONYL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cognipeer%2fto-markdown@3.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":502737},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"e19a271ae7f93528bc2c427f7c94f4069ef67f8c","scripts":{"dev":"tsc --watch","test":"vitest run","build":"npm run clean && npm run build:ts && npm run build:rollup","clean":"rm -rf dist","build:ts":"tsc","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","build:rollup":"rollup -c","prepublishOnly":"npm run build","publish-public":"npm publish --access public","publish-private":"npm publish"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:186ed3a3-c992-40c1-bc80-c400a7018c5d"}},"overrides":{"uuid":"^11.1.1"},"repository":{"url":"git+https://github.com/Cognipeer/to-markdown.git","type":"git"},"_npmVersion":"11.17.0","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","directories":{},"_nodeVersion":"24.19.0","dependencies":{"sharp":"^0.35.4","unpdf":"^1.8.1","xml2js":"^0.6.2","adm-zip":"^0.6.0","cheerio":"^1.0.0","exceljs":"^4.4.0","js-yaml":"^4.2.0","mammoth":"^1.8.0","turndown":"^7.2.0","file-type":"^22.0.2","msgreader":"^1.0.1","papaparse":"^5.5.2","iconv-lite":"^0.7.2","mime-types":"^2.1.35","xls-reader":"^0.7.0","tesseract.js":"^5.0.0","@types/js-yaml":"^4.0.9","music-metadata":"^11.0.5","@napi-rs/canvas":"^0.1.69","image-dimensions":"^2.5.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tslib":"^2.8.1","rollup":"^4.39.0","vitest":"^4.1.7","typescript":"^5.7.2","@types/node":"^22.10.5","@types/xml2js":"^0.4.14","@types/turndown":"^5.0.5","@types/papaparse":"^5.3.15","@types/mime-types":"^2.1.4","@rollup/plugin-json":"^6.1.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/to-markdown_3.3.0_1787843323456_0.9582760515762694","host":"s3://npm-registry-packages-npm-production"}},"3.4.2":{"name":"@cognipeer/to-markdown","version":"3.4.2","description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","type":"module","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"npm run clean && npm run build:ts && npm run build:rollup","build:ts":"tsc","build:rollup":"rollup -c","clean":"rm -rf dist","dev":"tsc --watch","prepublishOnly":"npm run build","test":"vitest run","docs:dev":"cd docs && bundle exec jekyll serve","docs:build":"cd docs && bundle exec jekyll build","publish-private":"npm publish","publish-public":"npm publish --access public"},"keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"author":{"name":"Cognipeer"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Cognipeer/to-markdown.git"},"bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"homepage":"https://cognipeer.github.io/to-markdown","dependencies":{"@napi-rs/canvas":"^0.1.69","@types/js-yaml":"^4.0.9","adm-zip":"^0.6.0","cheerio":"^1.0.0","exceljs":"^4.4.0","file-type":"^22.0.2","iconv-lite":"^0.7.2","image-dimensions":"^2.5.1","js-yaml":"^4.2.0","mammoth":"^1.8.0","mime-types":"^2.1.35","msgreader":"^1.0.1","music-metadata":"^11.0.5","papaparse":"^5.5.2","sharp":"^0.35.4","tesseract.js":"^5.0.0","turndown":"^7.2.0","unpdf":"^1.8.1","xls-reader":"^0.7.0","xml2js":"^0.6.2"},"devDependencies":{"@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-typescript":"^12.1.2","@types/mime-types":"^2.1.4","@types/node":"^22.10.5","@types/papaparse":"^5.3.15","@types/turndown":"^5.0.5","@types/xml2js":"^0.4.14","rollup":"^4.39.0","tslib":"^2.8.1","tsx":"^4.19.2","typescript":"^5.7.2","vitest":"^4.1.7"},"engines":{"node":">=18.0.0"},"overrides":{"uuid":"^11.1.1"},"gitHead":"4a4e7872eeda96cb31b5ef07ff061b27ba15fe64","_id":"@cognipeer/to-markdown@3.4.2","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-2IBe/i759uCw8LjnYtOfpqyINGUq7ljq/dqenoVKs3zALXmulEM5ulMdlppfMlZcwSRJSXPpGWjnvfqg7ydfeQ==","shasum":"cecd2d8e797093ce98852c61cf2257863589c8eb","tarball":"https://registry.npmjs.org/@cognipeer/to-markdown/-/to-markdown-3.4.2.tgz","fileCount":133,"unpackedSize":855924,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cognipeer%2fto-markdown@3.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIECCWJI+wmUcjIuQK7EzPaMSMY+6ZVZLwXxWBo/BozTCAiEA4ZgPtoqTI4ko6kqLUq8z0VP4XDJpSR3Z2k1lO9WYMyw="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:186ed3a3-c992-40c1-bc80-c400a7018c5d"}},"directories":{},"maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/to-markdown_3.4.2_1789140341948_0.5852991250628568"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-07T20:34:58.266Z","modified":"2026-09-11T15:25:42.468Z","0.0.1":"2025-04-07T20:34:58.721Z","1.0.0":"2025-05-01T12:00:03.515Z","1.0.1":"2025-05-23T13:29:39.078Z","2.0.0":"2025-10-09T08:30:31.340Z","2.0.1":"2025-10-09T08:41:00.370Z","3.0.0":"2026-06-26T11:14:12.338Z","3.0.1":"2026-07-02T13:52:10.346Z","3.0.2":"2026-07-02T14:26:31.604Z","3.0.3":"2026-07-06T07:01:16.088Z","3.1.0":"2026-07-17T07:22:05.538Z","3.1.1":"2026-08-03T00:19:27.170Z","3.2.0":"2026-08-17T07:45:44.565Z","3.2.1":"2026-08-27T05:59:08.963Z","3.2.2":"2026-08-27T06:08:10.085Z","3.3.0":"2026-08-27T15:08:43.662Z","3.4.2":"2026-09-11T15:25:42.102Z"},"bugs":{"url":"https://github.com/Cognipeer/to-markdown/issues"},"author":{"name":"Cognipeer"},"license":"MIT","homepage":"https://cognipeer.github.io/to-markdown","keywords":["markdown","converter","pdf","docx","html","excel","csv","jupyter","to-markdown","file-converter","typescript"],"repository":{"type":"git","url":"git+https://github.com/Cognipeer/to-markdown.git"},"description":"A versatile utility library for converting various file formats to Markdown. Now with TypeScript support!","maintainers":[{"name":"cihanalagoz","email":"cihanalagoz@hotmail.com"},{"name":"cognipeer-dev","email":"dev@cognipeer.com"},{"name":"sercanuste","email":"sercanuste@hotmail.com"},{"name":"aguleroglu","email":"anil.guleroglu@gmail.com"}],"readme":"# @cognipeer/to-markdown\n\n[![npm](https://img.shields.io/npm/v/@cognipeer/to-markdown?color=success)](https://npmjs.com/package/@cognipeer/to-markdown)\n[![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue)](https://www.typescriptlang.org/)\n[![License](https://img.shields.io/npm/l/@cognipeer/to-markdown)](https://github.com/Cognipeer/to-markdown/blob/main/LICENSE)\n\nA versatile, TypeScript-first utility library for converting various file formats to Markdown.\n\n## ✨ Features\n\n- 🎯 **Multiple Format Support**: Convert PDF, DOC, DOCX, HTML, Excel, CSV, and more\n- 🔎 **OCR Support**: Extract text from scanned PDFs and images\n- 📦 **Simple API**: Easy to use with Promise-based interface\n- 🔧 **TypeScript First**: Written in TypeScript with full type definitions\n- 🚀 **Fast & Efficient**: Optimized for performance with modular architecture\n- 📚 **Well Documented**: Comprehensive documentation with examples\n- 🎨 **Customizable**: Options to control conversion behavior\n\n## 📦 Installation\n\n```bash\nnpm install @cognipeer/to-markdown\n```\n\n**Using other package managers:**\n\n```bash\n# Yarn\nyarn add @cognipeer/to-markdown\n\n# pnpm\npnpm add @cognipeer/to-markdown\n```\n\nOptional OCR dependency (for default `tesseract` OCR provider):\n\n```bash\nnpm install tesseract.js\n```\n\n## 🔧 Development\n\n### Building from Source\n\n```bash\n# Install dependencies\nnpm install\n\n# Build TypeScript and bundles\nnpm run build\n\n# Watch mode for development\nnpm run dev\n```\n\n### Scripts\n\n- `npm run build` - Build TypeScript and create bundles\n- `npm run build:ts` - Compile TypeScript only\n- `npm run build:rollup` - Create rollup bundles only\n- `npm run clean` - Remove dist directory\n- `npm run dev` - Watch mode for TypeScript compilation\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 Changelog\n\n### Version 3.4.2 (Latest)\n\n- Fixed npm Trusted Publishing provenance verification by running the publish\n  workflow on a GitHub-hosted runner.\n- Added bounded binary Word 97-2003 `.doc` to Markdown conversion with body,\n  header, and footnote story preservation, typed errors, and CommonMark list\n  normalization.\n\n### Version 3.2.0\n\n- 🧩 Added `'handler'` OCR provider — supply a custom async callback (with page/image context) and the library makes no HTTP requests of its own\n\n### Version 3.1.x\n\n- 🩹 Fixed HTML→Markdown conversion collapsing tables, fenced code blocks, and ordered/nested lists\n- ⚡ Lazy-loaded `music-metadata` in the audio converter to reduce startup cost\n\n### Version 3.0.x\n\n- 🔎 Added OCR support for images and scanned PDFs\n- ⚙️ Added `ocr` option in `ConverterOptions` (`boolean | OCROptions`)\n- 🌐 Added OCR provider support: `tesseract`, `openai-vlm`, `anthropic-vlm`, `ollama-vlm`, `azure-vision`, `custom-vlm`\n- 🧠 Added PDF OCR modes: `auto`, `always`, `never`\n- 🐛 Fixed OCR VLM API compatibility and PDF rendering reliability\n\n### Version 2.0.1\n\n- 🖼️ Image metadata extraction now uses `image-size`\n\n### Version 2.0.0\n\n- ✨ Rewritten in TypeScript with full type definitions\n- 🏗️ Modular architecture with separate converter modules\n- 📚 Comprehensive documentation with GitHub Pages\n- 💡 Added usage examples\n- 🎯 Improved error handling\n- 📦 Better package exports (ESM + CJS)\n\n### Version 1.0.1\n\n- Initial release with JavaScript implementation\n\n📖 See [CHANGELOG.md](./CHANGELOG.md) for the complete, detailed release history.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 👤 Author\n\n**Cognipeer**\n\n- GitHub: [@Cognipeer](https://github.com/Cognipeer)\n- npm: [@cognipeer](https://www.npmjs.com/~cognipeer)\n\n## 🙏 Acknowledgments\n\nBuilt with these amazing libraries:\n\n- [pdf2md](https://github.com/opendocsg/pdf2md) - PDF parsing\n- [mammoth](https://github.com/mwilliamson/mammoth.js) - DOCX conversion\n- [turndown](https://github.com/mixmark-io/turndown) - HTML to Markdown\n- [xlsx](https://github.com/SheetJS/sheetjs) - Excel parsing\n- [cheerio](https://github.com/cheeriojs/cheerio) - HTML parsing\n- [sharp](https://github.com/lovell/sharp) - Image processing\n\n## 🔗 Links\n\n- [Documentation](https://docs.cognipeer.com/to-markdown/)\n- [npm Package](https://www.npmjs.com/package/@cognipeer/to-markdown)\n- [GitHub Repository](https://github.com/Cognipeer/to-markdown)\n- [Issue Tracker](https://github.com/Cognipeer/to-markdown/issues)\n\n---\n\nMade with ❤️ by [Cognipeer](https://github.com/Cognipeer)\n\n## 🚀 Quick Start\n\n### Basic Usage\n\n```typescript\nimport { convertToMarkdown, saveToMarkdownFile } from \"@cognipeer/to-markdown\";\n\n// Convert from file path\nconst markdown = await convertToMarkdown(\"/path/to/document.docx\");\nconsole.log(markdown);\n\n// Convert from buffer\nconst buffer = fs.readFileSync(\"document.pdf\");\nconst markdown = await convertToMarkdown(buffer, {\n  fileName: \"document.pdf\",\n});\nconsole.log(markdown);\n\n// Convert from base64 string\nconst base64Content = \"data:application/pdf;base64,JVBERi0xLjUNCiW...\";\nconst markdown = await convertToMarkdown(base64Content);\nconsole.log(markdown);\n\n// Save converted markdown to a file\nawait saveToMarkdownFile(markdown, \"converted-document\", \"./output\");\n```\n\n### TypeScript Usage\n\n```typescript\nimport {\n  convertToMarkdown,\n  saveToMarkdownFile,\n  type ConverterOptions,\n  type ConverterInput,\n} from \"@cognipeer/to-markdown\";\n\n// Type-safe conversion\nconst options: ConverterOptions = {\n  fileName: \"document.pdf\",\n  forceExtension: \".pdf\",\n  ocr: {\n    provider: \"tesseract\",\n    lang: \"eng\",\n    pdfMode: \"auto\",\n  },\n};\n\nconst input: ConverterInput = \"./document.pdf\";\nconst result: string = await convertToMarkdown(input, options);\n```\n\n### Convert Binary Word DOC\n\n```typescript\nconst markdown = await convertToMarkdown(docBuffer, {\n  fileName: \"policy.doc\",\n});\n```\n\nBinary Word `.doc` conversion supports Word 97-2003 documents. The default\noutput contains body text and non-empty header stories as Markdown-compatible\nsections, including non-empty footnotes. Set `doc.includeHeaders` or\n`doc.includeFootnotes` to `false` to omit those stories. Tables remain\ntab-separated rows unless cell structure can be established without guesswork.\n`DocOptions` also provides per-call input and output limits.\n\n```typescript\nconst markdown = await convertToMarkdown(docBase64, {\n  fileName: \"policy.doc\",\n  doc: {\n    maxInputBytes: 10 * 1024 * 1024,\n    maxOutputChars: 500_000,\n  },\n});\n```\n\nFor Buffer or plain-base64 input, provide `fileName` or `forceExtension: \".doc\"`.\nThe Compound File signature is shared by some older Office formats, so an input\nname is required to choose the DOC converter unambiguously. DOC input is limited\nto 25 MiB by default and 50 MiB maximum; output is limited to 2,000,000\ncharacters by default and 4,000,000 maximum.\n\nThe converter normalizes Word list metadata to CommonMark-compatible unordered\nand ordered lists. It does not extract images, OCR text, or embedded-object\npayloads, and it rejects encrypted, malformed, Word 6/95, and other unsupported\nlegacy formats with `DocConversionError`.\n\n## 📖 API Reference\n\n### `convertToMarkdown(input, options?)`\n\nConverts various file formats to Markdown.\n\n**Parameters:**\n\n- `input: ConverterInput` - File path (string), base64 data (string), or Buffer\n- `options?: ConverterOptions` - Optional configuration\n  - `fileName?: string` - Name of the file (helpful for buffer inputs)\n  - `forceExtension?: string` - Force a specific file extension for processing\n  - `url?: string` - Original URL (used for web content like YouTube or Bing search)\n  - `ocr?: boolean | OCROptions` - Enable OCR for images and scanned PDFs (opt-in)\n  - `doc?: DocOptions` - Options for binary Word `.doc` conversion\n\n`OCROptions` includes:\n\n- `provider?: 'tesseract' | 'openai-vlm' | 'anthropic-vlm' | 'ollama-vlm' | 'azure-vision' | 'custom-vlm' | 'handler'`\n- `lang?: string` - Tesseract language code (default: `eng`)\n- `pdfMode?: 'auto' | 'always' | 'never'` - PDF OCR mode (default: `auto`)\n- `vlm?: { model: string; apiKey?: string; apiBase?: string; prompt?: string; maxTokens?: number }`\n- `handler?: (buffer, context) => Promise<string>` - Custom async OCR callback (required when `provider: 'handler'`; library makes no HTTP calls)\n\n`DocOptions` includes:\n\n- `includeHeaders?: boolean` - Include non-empty document headers (default: `true`)\n- `includeFootnotes?: boolean` - Include non-empty document footnotes (default: `true`)\n- `maxInputBytes?: number` - DOC input limit (default: 25 MiB; maximum: 50 MiB)\n- `maxOutputChars?: number` - Markdown output limit (default: 2,000,000; maximum: 4,000,000)\n\nDOC conversion failures are instances of `DocConversionError` with one of these\ncodes: `DOC_INVALID`, `DOC_ENCRYPTED`, `DOC_LIMIT_EXCEEDED`, or `DOC_UNSUPPORTED`.\n\n**Returns:** `Promise<string>` - The converted markdown content\n\n**Example:**\n\n```typescript\nconst markdown = await convertToMarkdown(\"./document.pdf\", {\n  forceExtension: \".pdf\",\n});\n```\n\n### OCR Examples\n\n```typescript\n// 1) OCR scanned PDF with default provider (tesseract)\nconst scannedPdf = await convertToMarkdown(\"./scan.pdf\", {\n  ocr: true,\n});\n\n// 2) OCR image with explicit tesseract options\nconst imageText = await convertToMarkdown(\"./receipt.png\", {\n  ocr: { provider: \"tesseract\", lang: \"eng\" },\n});\n\n// 3) OCR PDF only when native text extraction is empty\nconst autoFallback = await convertToMarkdown(\"./document.pdf\", {\n  ocr: { pdfMode: \"auto\" },\n});\n\n// 4) Custom OCR handler — you control the OCR call (no fetch inside the library)\nconst customOcr = await convertToMarkdown(\"./scan.pdf\", {\n  ocr: {\n    provider: \"handler\",\n    pdfMode: \"auto\",\n    handler: async (buffer, context) => {\n      // context: page, pageCount, mimeType, sourceExtension, fileName, imageWidth, imageHeight\n      return await myOcrSdk.recognize(buffer, context);\n    },\n  },\n});\n```\n\n---\n\n### `saveToMarkdownFile(content, fileName, outputDir?)`\n\nSaves the markdown content to a file.\n\n**Parameters:**\n\n- `content: string` - The markdown content to save\n- `fileName: string` - Name for the output file (without .md extension)\n- `outputDir?: string` - Directory to save the file (defaults to \"output\")\n\n**Returns:** `Promise<string>` - Path to the saved file\n\n**Example:**\n\n```typescript\nconst filePath = await saveToMarkdownFile(markdown, \"document\", \"./output\");\nconsole.log(`Saved to: ${filePath}`);\n```\n\n## 📚 Documentation\n\nFor comprehensive documentation, please visit our [documentation site](https://docs.cognipeer.com/to-markdown/).\n\n- [Getting Started Guide](https://docs.cognipeer.com/to-markdown/getting-started)\n- [API Documentation](https://docs.cognipeer.com/to-markdown/api/overview)\n- [Format Support](https://docs.cognipeer.com/to-markdown/guides/formats)\n- [Error Handling](https://docs.cognipeer.com/to-markdown/guides/error-handling)\n\n## 💡 Examples\n\nCheck out the [`examples/`](./examples) directory for more usage examples:\n\n- [Basic Usage](./examples/basic-usage.ts) - File path, buffer, and base64 conversions\n- [Spreadsheet Conversion](./examples/spreadsheet-conversion.ts) - Excel and CSV to Markdown tables\n- [Advanced Usage](./examples/advanced-usage.ts) - Jupyter notebooks and complex HTML\n\n### Running Examples\n\n```bash\n# Using tsx (recommended for development)\nnpx tsx examples/basic-usage.ts\n\n# Or build and run\nnpm run build\nnode dist/examples/basic-usage.js\n```\n\n## 🏗️ Project Structure\n\n```\nto-markdown/\n├── src/\n│   ├── converters/      # Format-specific converters\n│   │   ├── pdf.ts\n│   │   ├── docx.ts\n│   │   ├── html.ts\n│   │   └── ...\n│   ├── types/           # TypeScript type definitions\n│   │   └── index.ts\n│   ├── utils/           # Utility functions\n│   │   ├── markdown.ts\n│   │   └── fileDetection.ts\n│   └── index.ts         # Main entry point\n├── examples/            # Usage examples\n├── docs/                # GitHub Pages documentation\n├── dist/                # Compiled output\n└── package.json\n```\n\n- **Web content**: Special handling for YouTube videos and Bing search results\n\n## Examples\n\n### Convert PDF to Markdown\n\n```javascript\nimport { convertToMarkdown } from \"@cognipeer/to-markdown\";\nimport fs from \"fs\";\n\nconst pdfBuffer = fs.readFileSync(\"document.pdf\");\nconst markdown = await convertToMarkdown(pdfBuffer, {\n  fileName: \"document.pdf\",\n});\n\nconsole.log(markdown);\n```\n\n### Convert DOCX to Markdown\n\n```javascript\nimport { convertToMarkdown } from \"@cognipeer/to-markdown\";\n\nconst markdown = await convertToMarkdown(\"/path/to/document.docx\");\nconsole.log(markdown);\n```\n\n### Convert HTML to Markdown\n\n```javascript\nimport { convertToMarkdown, saveToMarkdownFile } from \"@cognipeer/to-markdown\";\nimport fs from \"fs\";\n\nconst htmlContent = fs.readFileSync(\"page.html\", \"utf-8\");\nconst markdown = await convertToMarkdown(htmlContent, {\n  forceExtension: \".html\",\n});\nconsole.log(markdown);\n```\n\n### Convert and Save to File\n\n```javascript\nimport { convertToMarkdown, saveToMarkdownFile } from \"@cognipeer/to-markdown\";\n\nconst markdown = await convertToMarkdown(\"/path/to/document.pdf\");\nconst savedPath = await saveToMarkdownFile(\n  markdown,\n  \"converted-document\",\n  \"./output\",\n);\nconsole.log(`Saved to: ${savedPath}`);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}