MCPcopy Create free account
hub / github.com/TruthHun/BookStack / assertEncoding

Function assertEncoding

static/word2md/mammoth.browser.js:27666–27670  ·  view source on GitHub ↗
(encoding)

Source from the content-addressed store, hash-verified

27664
27665
27666function assertEncoding(encoding) {
27667 if (encoding && !isBufferEncoding(encoding)) {
27668 throw new Error('Unknown encoding: ' + encoding);
27669 }
27670}
27671
27672// StringDecoder provides an interface for efficiently splitting a series of
27673// buffers into a series of JS strings without breaking apart multi-byte

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected