RTF to text/HTML util package; deprived from @keyrinrin/rtf-util
npm install read-rtf js
const {RtfParser} = require("read-rtf");
const {RtfConverter} = require("read-rtf");
let parser = new RtfParser();
let converter = new RtfConverter();
let rtfGroup = parser.parse(temp);
let htmlContent converter.convert(rtfGroup)
`
text extraction
Basically this could be used to extract plain text from RTF document.
`js
const fs = require('fs')
let qw = new RtfParser();
let rtfContent = fs.readFileSync('%MY_RTF_DOCUMENT%', "utf-8");
qw.parse(rtfContent);
const extractedText = qw.rawText;
``