https://github.com/twbs/bootstrap
Raw File
Tip revision: 331a935902e509c58e92228bc78fdece9bf633d7 authored by XhmikosR on 02 November 2021, 11:04:29 UTC
Move ESLint config to an override
Tip revision: 331a935
banner.js
'use strict'

const pkg = require('../package.json')
const year = new Date().getFullYear()

function getBanner(pluginFilename) {
  return `/*!
  * Bootstrap${pluginFilename ? ` ${pluginFilename}` : ''} v${pkg.version} (${pkg.homepage})
  * Copyright 2011-${year} ${pkg.author}
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */`
}

module.exports = getBanner
back to top