html a texto npm

//install package
npm i html-to-text


//import fun
const { convert } = require("html-to-text");


let text=convert(html, {
          wordwrap: 130,
        });

console.log(text)
Courageous Cat