(arg)
| 20165 | /** |
| 20166 | * Adds an HTML thematic break (<hr>) to the summary buffer |
| 20167 | * |
| 20168 | * @returns {Summary} summary instance |
| 20169 | */ |
| 20170 | addSeparator() { |
| 20171 | const element = this.wrap("hr", null); |
| 20172 | return this.addRaw(element).addEOL(); |
| 20173 | } |
| 20174 | /** |
| 20175 | * Adds an HTML line break (<br>) to the summary buffer |
| 20176 | * |
| 20177 | * @returns {Summary} summary instance |
| 20178 | */ |
| 20179 | addBreak() { |
| 20180 | const element = this.wrap("br", null); |
| 20181 | return this.addRaw(element).addEOL(); |
| 20182 | } |
| 20183 | /** |
| 20184 | * Adds an HTML blockquote to the summary buffer |
| 20185 | * |
| 20186 | * @param {string} text quote text |
| 20187 | * @param {string} cite (optional) citation url |
| 20188 | * |
| 20189 | * @returns {Summary} summary instance |
| 20190 | */ |
| 20191 | addQuote(text, cite) { |
| 20192 | const attrs = Object.assign({}, cite && { cite }); |
| 20193 | const element = this.wrap("blockquote", text, attrs); |
| 20194 | return this.addRaw(element).addEOL(); |
| 20195 | } |
| 20196 | /** |
| 20197 | * Adds an HTML anchor tag to the summary buffer |
| 20198 | * |
| 20199 | * @param {string} text link text/content |
| 20200 | * @param {string} href hyperlink |
| 20201 | * |
| 20202 | * @returns {Summary} summary instance |
| 20203 | */ |
| 20204 | addLink(text, href) { |
| 20205 | const element = this.wrap("a", text, { href }); |
| 20206 | return this.addRaw(element).addEOL(); |
| 20207 | } |
| 20208 | }; |
| 20209 | var _summary = new Summary(); |
| 20210 | |
| 20211 | // |
| 20212 | var platform_exports = {}; |
| 20213 | __export(platform_exports, { |
| 20214 | arch: () => arch, |
| 20215 | getDetails: () => getDetails, |
| 20216 | isLinux: () => isLinux, |
| 20217 | isMacOS: () => isMacOS, |
| 20218 | isWindows: () => isWindows, |
| 20219 | platform: () => platform |
| 20220 | }); |
| 20221 | var import_os2 = __toESM(__require("os")); |
| 20222 | |
| 20223 | // |
| 20224 | var import_string_decoder = __require("string_decoder"); |
no test coverage detected