MCPcopy Index your code
hub / github.com/nodejs/node / getEncodingFromLabel

Function getEncodingFromLabel

lib/internal/encoding.js:333–337  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

331}
332
333function getEncodingFromLabel(label) {
334 const enc = encodings.get(label);
335 if (enc !== undefined) return enc;
336 return encodings.get(trimAsciiWhitespace(label.toLowerCase()));
337}
338
339let lazyInspect;
340

Callers 2

constructorMethod · 0.85

Calls 2

trimAsciiWhitespaceFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…