NPM.Health (NPM v0.6.0)

Copy Markdown View Source

Comprehensive project health scoring.

Evaluates multiple dimensions of npm project health and produces an overall score with actionable recommendations.

Summary

Functions

Formats the health report.

Returns a grade based on the score.

Returns recommendations based on checks.

Computes a health score (0-100) for a project.

Functions

format_report(map)

@spec format_report(map()) :: String.t()

Formats the health report.

grade(score)

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

Returns a grade based on the score.

recommendations(checks)

@spec recommendations(map()) :: [String.t()]

Returns recommendations based on checks.

score(checks)

@spec score(map()) :: %{score: non_neg_integer(), details: map()}

Computes a health score (0-100) for a project.