MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / _btoa

Function _btoa

benchmark/data.js:132–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131}
132let _btoa = () => {
133 throw new Error('Unsupported environment: `btoa` or `Buffer` should be supported.');
134};
135if (typeof Buffer === 'function') {
136 _btoa = (str) => Buffer.from(str, 'utf-8').toString('base64');
137} else if (typeof btoa === 'function') {

Callers 1

toUrlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected