MCPcopy Index your code
hub / github.com/simstudioai/sim / decodeBase64Url

Function decodeBase64Url

apps/sim/connectors/gmail/gmail.ts:146–148  ·  view source on GitHub ↗

* Decodes base64url-encoded content from the Gmail API. * Uses Buffer to correctly handle multi-byte UTF-8 characters.

(data: string)

Source from the content-addressed store, hash-verified

144 * Uses Buffer to correctly handle multi-byte UTF-8 characters.
145 */
146function decodeBase64Url(data: string): string {
147 return Buffer.from(data, 'base64url').toString('utf-8')
148}
149
150/**
151 * Extracts the plain text body from a Gmail message payload.

Callers 1

extractBodyFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected