Returns an object containing the library name and version.
An object with version and name properties.
version
name
Useful for logging, debugging, or constructing custom User-Agent headers.
User-Agent
const info = buildInfo();console.log(`${info.name} v${info.version}`); // "libts-csrfx-auth v0.1.1"@public Copy
const info = buildInfo();console.log(`${info.name} v${info.version}`); // "libts-csrfx-auth v0.1.1"@public
0.1.1
Returns an object containing the library name and version.