report

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func JSON(e estimate.Estimate, version string) ([]byte, error)

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.

func Markdown

func Markdown(e estimate.Estimate) string

Markdown is the Markdown report, readable as it is (to paste into a proposal).

func Summary

func Summary(e estimate.Estimate) []string

Summary is the terminal's summary: the totals, the bars, the tables aligned with borders, the ten workloads saving the most, what was left out.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL