NPM.ProgressReporter (NPM v0.6.0)

Copy Markdown View Source

Reports progress during npm operations (resolution, fetching, linking).

Summary

Functions

Formats a step breakdown for total timing.

Formats a completion message with timing.

Formats a fetch progress message.

Formats time in human-readable form.

Formats a linking progress message.

Formats a resolution progress message.

Functions

breakdown(steps)

@spec breakdown(keyword()) :: String.t()

Formats a step breakdown for total timing.

done(step, ms)

@spec done(atom(), non_neg_integer()) :: String.t()

Formats a completion message with timing.

fetching(name, fetched, total)

@spec fetching(String.t(), non_neg_integer(), non_neg_integer()) :: String.t()

Formats a fetch progress message.

format_time(ms)

@spec format_time(non_neg_integer()) :: String.t()

Formats time in human-readable form.

linking(linked, total)

@spec linking(non_neg_integer(), non_neg_integer()) :: String.t()

Formats a linking progress message.

resolving(resolved, total)

@spec resolving(non_neg_integer(), non_neg_integer()) :: String.t()

Formats a resolution progress message.