MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / encode

Function encode

src/utils/encodings.js:199–202  ·  view source on GitHub ↗
(text, charset)

Source from the content-addressed store, hash-verified

197 * @returns {Promise<ArrayBuffer>}
198 */
199export function encode(text, charset) {
200 charset = getEncodingName(charset);
201 return execEncode(text, charset);
202}
203
204export async function initEncodings() {
205 return new Promise((resolve, reject) => {

Callers 3

writeFileFunction · 0.90
writeFileFunction · 0.90
writeFileFunction · 0.90

Calls 2

getEncodingNameFunction · 0.85
execEncodeFunction · 0.85

Tested by

no test coverage detected