@relab/app-info
TypeScript icon, indicating that this package has built-in type declarations

1.1.12 • Public • Published

@relab/app-info

Utility to display app info in browser console.

Features

  • 🚀 Zero dependencies
  • 🌓 Dark/light mode support
  • 💡 Multiple theme support
  • 💥 Works in SSR environment

app-info

Usage

  1. npm install --save @relab/app-info
  2. 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'
})

Options

  • 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'
})

Themes

Themes

License

Released under MIT by Sergey Zwezdin.

Readme

Keywords

Package Sidebar

Install

npm i @relab/app-info

Weekly Downloads

14

Version

1.1.12

License

MIT

Unpacked Size

6.59 kB

Total Files

5

Last publish

Collaborators

  • relab