Built JS and type definitions for console banner utility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
871 B
TypeScript
36 lines
871 B
TypeScript
/**
|
|
* Console banner for displaying app version in browser console
|
|
*
|
|
* Uses global constants injected by versionPlugin:
|
|
* - __APP_NAME__
|
|
* - __APP_VERSION__
|
|
* - __BUILD_TIME__
|
|
* - __GIT_COMMIT__
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* // In your app's entry point (main.tsx or App.tsx)
|
|
* import { logVersionBanner } from '@lilith/vite-version-plugin/console';
|
|
*
|
|
* logVersionBanner();
|
|
* ```
|
|
*/
|
|
/**
|
|
* Logs a styled version banner to the browser console
|
|
*
|
|
* @param options Optional customization
|
|
*/
|
|
export declare function logVersionBanner(options?: {
|
|
primaryColor?: string;
|
|
secondaryColor?: string;
|
|
}): void;
|
|
/**
|
|
* Returns version info as an object (useful for debugging or display in UI)
|
|
*/
|
|
export declare function getVersionInfo(): {
|
|
appName: string;
|
|
version: string;
|
|
buildTime: string;
|
|
gitCommit: string;
|
|
};
|
|
export default logVersionBanner;
|