MCPcopy Create free account
hub / github.com/browserless/browserless / convertIfBase64

Function convertIfBase64

src/utils.ts:549–550  ·  view source on GitHub ↗
(item: string)

Source from the content-addressed store, hash-verified

547export const isBase64Encoded = (item: string): boolean => isBase64.test(item);
548
549export const convertIfBase64 = (item: string): string =>
550 isBase64Encoded(item) ? Buffer.from(item, 'base64').toString() : item;
551
552export const availableBrowsers = Promise.all([
553 exists(playwright.chromium.executablePath()),

Callers 4

shimLegacyRequestsFunction · 0.85
readBodyFunction · 0.85
getBrowserForRequestMethod · 0.85
handler.tsFile · 0.85

Calls 1

isBase64EncodedFunction · 0.85

Tested by

no test coverage detected