libbase64

15 releases measured. Default branch at e1e44298, 2026-10-19, 1 files.

Source lines
239
+39.0% in a year
Maintainability index
52.6
0.0 in a year
Mean CC per function
4.57
Functions with CC > 20
0
of 14
Size

Lines of code, comments and blank lines left out

Maintainability index

Mean over functions, weighted by their lines. Higher is better

Cyclomatic complexity per function

Lower is better

Hard to maintain

Share of functions, and of function code, past the usual limits. Lower is better

Least maintainable functions now

Function Location MI CC Lines
_transform src/libbase64.ts:326 44.4 8 31
decode src/libbase64.ts:28 46.3 9 26
wrapBuffer src/libbase64.ts:86 49.1 5 21
_transform src/libbase64.ts:274 51.1 5 18
_writeChunk src/libbase64.ts:223 51.4 6 20
_emit src/libbase64.ts:255 54.0 5 15
legacyWrap src/libbase64.ts:141 54.6 2 15
constructor src/libbase64.ts:202 55.4 7 13
wrap src/libbase64.ts:121 57.3 5 11
encode src/libbase64.ts:10 60.6 3 9
_flush src/libbase64.ts:371 62.2 2 9
constructor src/libbase64.ts:316 65.6 2 7
_flush src/libbase64.ts:299 68.6 2 5
normalizeLineLength src/libbase64.ts:71 70.6 3 4
Every measured release 15
Release Date Files Source lines Functions MI Mean CC P90 CC Max CC CC > 10 CC > 20
default branch 2026-10-19 1 239 14 52.6 4.57 8 9 0 0
v1.4.1 2026-10-18 1 239 14 52.6 4.57 8 9 0 0
v1.4.0 2026-10-18 1 236 14 52.9 4.50 8 8 0 0
v1.3.3 2026-10-14 1 213 14 53.2 4.50 8 8 0 0
v1.3.2 2026-10-04 1 206 14 53.8 4.43 7 8 0 0
v1.3.1 2026-09-28 1 191 11 51.4 5.18 8 11 1 0
v1.3.0 2024-02-23 1 172 11 52.6 4.64 7 11 1 0
v1.2.1 2019-08-07 1 171 11 52.6 4.64 7 11 1 0
v1.2.0 2019-08-06 1 172 11 52.6 4.55 7 11 1 0
v1.1.0 2019-07-28 1 164 10 52.0 4.70 7 11 1 0
v1.0.3 2018-07-24 1 144 9 52.1 4.33 11 11 1 0
v1.0.2 2017-12-15 1 144 9 52.1 4.33 11 11 1 0
v1.0.1 2017-11-26 1 145 9 52.0 4.33 11 11 1 0
v1.0.0 2017-11-23 1 134 9 52.8 4.22 11 11 1 0
v0.2.0 2017-06-06 1 131 10 54.5 3.70 7 9 0 0
v0.1.0 2014-06-18 1 129 10 54.9 3.60 6 9 0 0
How the numbers are made

Library source only: lib/, src/, workers/, bin/ and top-level source files. Tests, examples, tooling, type declarations and generated or minified files are left out.

Source lines are lines carrying code, with blank lines and comments dropped.

Cyclomatic complexity (CC) counts the independent paths through a function: 1 plus every if, loop, case, catch, ternary, && / || / ??, optional chain and default parameter. Above 10 a function is commonly considered hard to test, above 20 hard to understand.

Maintainability index (MI) is computed per function as max(0, (171 - 5.2 ln(Halstead volume) - 0.23 CC - 16.2 ln(lines)) * 100 / 171), the 0 to 100 scale Visual Studio uses, where below 20 is poor. The repository figure weights each function by its lines. Code outside any function (lookup tables, schemas, declarations) counts toward size only. MI is driven mostly by size, so read it as a trend, not a grade.

A move from JavaScript to TypeScript adds type annotations to every function, which raises the Halstead volume and lowers MI without the logic changing. Expect a step at that release.

Measured Mon, 19 Oct 2026 19:28:19 GMT.