banner.js 392 B

1234567891011121314
  1. 'use strict'
  2. const pkg = require('../package.json')
  3. const year = new Date().getFullYear()
  4. function getBanner(pluginFilename) {
  5. return `/*!
  6. * Bootstrap${pluginFilename ? ` ${pluginFilename}` : ''} v${pkg.version} (${pkg.homepage})
  7. * Copyright 2011-${year} ${pkg.author}
  8. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  9. */`
  10. }
  11. module.exports = getBanner