MCPcopy
hub / github.com/gildas-lormeau/zip.js / decodeText

Function decodeText

index-native.cjs:3256–3262  ·  view source on GitHub ↗
(value, encoding)

Source from the content-addressed store, hash-verified

3254
3255
3256function decodeText(value, encoding) {
3257 if (encoding && encoding.trim().toLowerCase() == "cp437") {
3258 return decodeCP437(value);
3259 } else {
3260 return new TextDecoder(encoding).decode(value);
3261 }
3262}
3263
3264/*
3265 Copyright (c) 2025 Gildas Lormeau. All rights reserved.

Callers 2

getEntriesGeneratorMethod · 0.70
readExtraFieldUnicodeFunction · 0.70

Calls 1

decodeCP437Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…