Documentation
¶
Overview ¶
Text as the Node report writes it (manager packages/estimate/src/report.ts): dollars as Intl writes them, JavaScript's Math.round, String.length in UTF-16 units, and the small helpers n, day, windowAdjective and windowWords.
The JSON report: ports jsonReport of manager packages/estimate/src/report.ts, JSON.stringify(e, null, 2) and a newline, with "tool" added first (the only difference from Node's by design).
The Markdown report: ports markdownReport, companionLines, uptimeCell, backendCell and target of manager packages/estimate/src/report.ts (the sections, tables, columns and texts are Node's).
The standalone resources in the reports (vision standalone workloads design §7, --standalone on): the totals for HTTP, standalone and both, the assumption once beside them, the resources estimated with their kind, those left out with why, and what the scan could not read. With --standalone off the reports are as before them.
The terminal's summary and the visual of the cost: ports summaryLines and costVisual of manager packages/estimate/src/report.ts.
The totals as a table, Markdown in the report and aligned text in the terminal: ports the Row and Table types, markdownTable and textTable of manager packages/estimate/src/report.ts.
The two tables of the totals, shared by the Markdown and the terminal: ports counts, saved, accountsTable and costTable of manager packages/estimate/src/report.ts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
JSON is the estimate as JSON.stringify(e, null, 2) writes it, a newline after, with "tool": {"name": "dormeto", "version": version} first. A number JSON cannot hold (NaN, infinity) is null, as JavaScript writes it. The error is the encoder's when the estimate holds a value no JSON can (a channel; none does): the report is not written.
Types ¶
This section is empty.