UNPKG

ecoledirecte.js

Version:

Good-looking client for EcoleDirecte's private API.

22 lines (21 loc) 611 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExpandedBase64 = void 0; const html_to_text_1 = require("html-to-text"); class ExpandedBase64 { constructor(htmlBase64) { this.original = htmlBase64; this.html = Buffer.from(htmlBase64, "base64").toString(); this.text = (0, html_to_text_1.htmlToText)(this.html, { wordwrap: false, }); } toJSON() { return { original: this.original, html: this.html, text: this.text, }; } } exports.ExpandedBase64 = ExpandedBase64;