mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
14 lines
436 B
JavaScript
14 lines
436 B
JavaScript
const path = require('path')
|
|
const pkg = require(path.resolve(__dirname, '../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/master/LICENSE)
|
|
*/`
|
|
}
|
|
|
|
module.exports = getBanner
|