MCPcopy Create free account
hub / github.com/Effect-TS/effect / createSelectedReport

Method createSelectedReport

packages/tools/bundle/src/Reporter.ts:161–175  ·  view source on GitHub ↗
(stats: ReadonlyArray<BundleStats>)

Source from the content-addressed store, hash-verified

159 }
160
161 const createSelectedReport = (stats: ReadonlyArray<BundleStats>): string => {
162 const lines: Array<string> = [
163 "| File Name | Current Size |",
164 "|:----------|:------------:|"
165 ]
166
167 for (const current of stats) {
168 const filename = `\`${path.basename(current.path)}\``
169 const currKb = `${(current.sizeInBytes / 1000).toFixed(2)} KB`
170 const line = `| ${filename} | ${currKb} |`
171 lines.push(line)
172 }
173
174 return lines.join("\n") + "\n"
175 }
176
177 const createVisualizationReport = (paths: ReadonlyArray<string>, outputDirectory: string): string => {
178 const lines: Array<string> = [

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected