Skip to content

@saflib/imports


Function: measureGraph()

measureGraph(entryPath, options): MeasureGraphResult

Walk the static import graph from entryPath and count first-party modules, total lines, and distinct external npm package roots.

Parameters

ParameterType
entryPathstring
optionsMeasureGraphOptions

Returns

MeasureGraphResult