Utility to display app info in browser console.
- 🚀 Zero dependencies
- 🌓 Dark/light mode support
- 💡 Multiple theme support
- 💥 Works in SSR environment
npm install --save @relab/app-info
- Add
displayAppInfo()
at the start of your app
displayAppInfo('My Cool Application', {
Version: '1.0.0',
Commit: 'e8c97b69084b65a2b728528ad7a2aab5de7869bc',
Branch: 'refs/heads/master',
'Build Number': '7'
})
-
theme
- one of predefined theme, supported options are:Blue
,Cyan
,Emerald
,Gray
,Green
,Indigo
,Lime
,Orange
,Pink
,Purple
,Zinc
(default:Zinc
) -
printStartTime
- whether to print application start time (default:true
)
displayAppInfo('My Cool Application', {
Version: '1.0.0',
Commit: 'e8c97b69084b65a2b728528ad7a2aab5de7869bc',
Branch: 'refs/heads/master',
'Build Number': '7'
}, {
printStartTime: false,
theme: 'Indigo'
})
Released under MIT by Sergey Zwezdin.