https://github.com/twbs/bootstrap
Raw File
Tip revision: 0505cf8ee5be1ef80d23390a96fc159d425cb69d authored by Mark Otto on 17 June 2022, 01:43:13 UTC
Add a cssvar() function
Tip revision: 0505cf8
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