Files
copilot-toolbox-sdfdsfds/node_modules/@segment/analytics-node/src/lib/base-64-encode.ts
2026-01-16 01:51:36 +00:00

9 lines
256 B
TypeScript

// eslint-disable-next-line import/no-nodejs-modules
import { Buffer } from 'buffer'
/**
* Base64 encoder that works in browser, worker, node runtimes.
*/
export const b64encode = (str: string): string => {
return Buffer.from(str).toString('base64')
}