{"_id":"@elchika-inc/html-to-text","_rev":"2-e8e7567efd57e404eefa1ab35d30972d","name":"@elchika-inc/html-to-text","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@elchika-inc/html-to-text","version":"0.1.0","keywords":["html","text","convert","parser","cheerio"],"author":{"name":"naoto24kawa"},"license":"MIT","_id":"@elchika-inc/html-to-text@0.1.0","maintainers":[{"name":"naoto24kawa","email":"naoto24kawa@gmail.com"}],"homepage":"https://github.com/elchika-inc/html-to-text#readme","bugs":{"url":"https://github.com/elchika-inc/html-to-text/issues"},"dist":{"shasum":"3277c7fe58d88d65952b5f6edc14f32bfa8bc966","tarball":"https://registry.npmjs.org/@elchika-inc/html-to-text/-/html-to-text-0.1.0.tgz","fileCount":4,"integrity":"sha512-WPmEOzl8yPw1MJkQonjmR8pG0mEDzZTdm7/DSYAQY5u6f/2PszgnfeJqUUXvWBPqtqfJ6LLO9Vt/4HF5c1sdFg==","signatures":[{"sig":"MEQCICt/8zbnKxagScKZci5dQInraA4LaAZFS+KzmwxjhnVyAiBLPkLt4ZWbVp5wvFa3oCYFY3fZJsBnoybqiZcKhKnLDQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4618},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"scripts":{"test":"bun test","build":"tsc","clean":"rm -rf dist","npm:publish":"npm publish --access public","prepublishOnly":"bun run clean && bun run build"},"_npmUser":{"name":"naoto24kawa","actor":{"name":"naoto24kawa","type":"user","email":"naoto24kawa@gmail.com"},"email":"naoto24kawa@gmail.com"},"repository":{"url":"git+https://github.com/elchika-inc/html-to-text.git","type":"git"},"_npmVersion":"10.9.2","description":"Convert HTML content to plain text format","directories":{},"_nodeVersion":"23.11.0","dependencies":{"cheerio":"^1.0.0-rc.12"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/html-to-text_0.1.0_1750948420840_0.28639639836271336","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2025-06-26T14:33:40.774Z","modified":"2026-06-01T10:16:56.985Z","0.1.0":"2025-06-26T14:33:40.992Z"},"bugs":{"url":"https://github.com/elchika-inc/html-to-text/issues"},"author":{"name":"naoto24kawa"},"license":"MIT","homepage":"https://github.com/elchika-inc/html-to-text#readme","keywords":["html","text","convert","parser","cheerio"],"repository":{"url":"git+https://github.com/elchika-inc/html-to-text.git","type":"git"},"description":"Convert HTML content to plain text format","maintainers":[{"name":"naoto24kawa","email":"naoto24kawa@gmail.com"}],"readme":"# @elchika-inc/html-to-text\n\nConvert HTML content to plain text format using Cheerio.\n\n## Installation\n\n```bash\nnpm install @elchika-inc/html-to-text\n```\n\n## Usage\n\n```typescript\nimport { HtmlToTextConverter } from '@elchika-inc/html-to-text';\n\nconst html = '<h1>Hello World</h1><p>This is a paragraph.</p>';\n\n// Basic conversion\nconst text = HtmlToTextConverter.convert(html);\nconsole.log(text); // \"Hello World This is a paragraph.\"\n\n// With options\nconst textWithTitle = HtmlToTextConverter.convert(html, {\n  includeTitle: true,\n  title: 'My Document',\n  normalizeWhitespace: true\n});\n\n// With formatting preserved\nconst formattedText = HtmlToTextConverter.convertWithFormatting(html, {\n  includeTitle: true,\n  title: 'My Document'\n});\n```\n\n## API\n\n### `HtmlToTextConverter.convert(html, options?)`\n\nConvert HTML to plain text.\n\n**Options:**\n- `normalizeWhitespace` (boolean, default: true) - Normalize whitespace\n- `includeTitle` (boolean, default: false) - Include title at the beginning\n- `title` (string) - Title to include if `includeTitle` is true\n\n### `HtmlToTextConverter.convertWithFormatting(html, options?)`\n\nConvert HTML to text with better formatting preservation.\n\n## License\n\nMIT","readmeFilename":"README.md"}