mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
5 lines
235 B
TypeScript
5 lines
235 B
TypeScript
export function getPiUserAgent(version: string): string {
|
|
const runtime = process.versions.bun ? `bun/${process.versions.bun}` : `node/${process.version}`;
|
|
return `pi/${version} (${process.platform}; ${runtime}; ${process.arch})`;
|
|
}
|