{"id":24452923,"url":"https://github.com/extensionengine/rtf-parser","last_synced_at":"2026-04-26T17:32:00.525Z","repository":{"id":95930967,"uuid":"290106095","full_name":"ExtensionEngine/rtf-parser","owner":"ExtensionEngine","description":"Parse RTF documents","archived":false,"fork":false,"pushed_at":"2020-08-28T23:57:53.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-26T09:31:33.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExtensionEngine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-25T03:48:14.000Z","updated_at":"2020-08-28T23:57:55.000Z","dependencies_parsed_at":"2023-04-24T13:08:34.337Z","dependency_job_id":null,"html_url":"https://github.com/ExtensionEngine/rtf-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExtensionEngine%2Frtf-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExtensionEngine%2Frtf-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExtensionEngine%2Frtf-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExtensionEngine%2Frtf-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExtensionEngine","download_url":"https://codeload.github.com/ExtensionEngine/rtf-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243534352,"owners_count":20306499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-21T01:17:41.199Z","updated_at":"2025-12-28T17:40:04.844Z","avatar_url":"https://github.com/ExtensionEngine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg width=\"150\" src=\"https://cdn.jsdelivr.net/gh/ExtensionEngine/rtf-parser/media/logo.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# @extensionengine/rtf-parser\n\n[![circleci build status](https://badgen.net/circleci/github/ExtensionEngine/rtf-parser/master?icon)](https://app.circleci.com/pipelines/github/ExtensionEngine/rtf-parser?branch=master)\n[![install size](https://badgen.net/packagephobia/install/@extensionengine/rtf-parser)](https://packagephobia.now.sh/result?p=@extensionengine/rtf-parser)\n[![npm package version](https://badgen.net/npm/v/@extensionengine/rtf-parser)](https://npm.im/@extensionengine/rtf-parser)\n[![github license](https://badgen.net/github/license/ExtensionEngine/rtf-parser)](https://github.com/ExtensionEngine/rtf-parser/blob/master/LICENSE)\n[![js @extensionengine style](https://badgen.net/badge/code%20style/@extensionengine/black)](https://github.com/ExtensionEngine/eslint-config)\n\n\u003e Parse RTF documents\n\n## Installation\n\n    npm install @extensionengine/rtf-parser\n\n## CLI\n\nConvert RTF document to plain text:\n\n    npx -p @extensionengine/rtf-parser rtf2txt \u003crtfdoc\u003e\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n#### Table of Contents\n\n-   [parseRTF](#parsertf)\n    -   [Parameters](#parameters)\n    -   [Examples](#examples)\n-   [RTFDocument](#rtfdocument)\n\n### parseRTF\n\nParse RTF document\n\n#### Parameters\n\n-   `buffer` **[Buffer](https://nodejs.org/api/buffer.html)** RTF document\n\n#### Examples\n\n```javascript\nconst parseRTF = require('@extensionengine/rtf-parser');\nconst path = require('path');\nconst { readFileSync } = require('fs');\n\nconst rtf = readFileSync(path.join(__dirname, './reports/1110779471-20200721.rtf'));\nparseRTF(rtf).then(rtfdoc =\u003e console.log({ rtfdoc }));\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u0026lt;[RTFDocument](#rtfdocument)\u003e** RTF document object\n\n### RTFDocument\n\n-   **See: \u003chttps://github.com/iarna/rtf-parser#rtfdocument\u003e\n    **\n\nType: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextensionengine%2Frtf-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextensionengine%2Frtf-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextensionengine%2Frtf-parser/lists"}