@inoy/terminal-banner-plugin

1.0.1 • Public • Published

Webpack Terminal Banner Plugin

Webpack plugin for showing banner after all notifications

npm Version Terminal Banner Plugin

Terminal banner screenshot

Using

// webpack.config.js
const TerminalBannerPlugin = require('@inoy/terminal-banner-plugin')
// other code

module.exports = {
    //… rest of your webpack config
    plugins: [
        new WebpackNotifier2Plugin(/* check out my other plugin ;-) */),
        new TerminalBannerPlugin({
            emptyLineBefore: false, // optional; put empty line before the banner
            emptyLineAfter: false // optional; put empty line after the banner
        })
    ]
}

Also you can use couple of functions getTag and getBranch separately

const terminalBannerPlugin = new TerminalBannerPlugin()

const currentTag = terminalBannerPlugin.getTag() ?? 'unknown tag'
const currentBranch = terminalBannerPlugin.getBranch() ?? 'unknown branch'

The banner will show only in development mode

Requirements

Minimal supported Node version is 20.19.

License

GPLv3

Package Sidebar

Install

npm i @inoy/terminal-banner-plugin

Weekly Downloads

61

Version

1.0.1

License

GPL-3.0

Unpacked Size

152 kB

Total Files

8

Last publish

Collaborators

  • inoyakaigor