UNPKG

agentlang

Version:

The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans

6 lines (4 loc) 185 B
import { Buffer } from 'buffer'; export function encodeForBasicAuth(username: string, password: string): string { return Buffer.from(`${username}:${password}`).toString('base64'); }