xeira
Version:
One Web Dev stack tool to rule them all
19 lines (18 loc) • 469 B
JavaScript
function rollupBanner(pkgJson) {
return `/**
* ${pkgJson.name} v${pkgJson.version || '0.0.0'}
*
* ${pkgJson?.homepage || pkgJson?.repository?.url || ''}
*
* Copyright (c) ${pkgJson?.author || '-no-author-'}
*
* This source code is licensed under the ${pkgJson.license || 'MIT'} license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license ${pkgJson.license || 'MIT'}
*/
/* eslint-disable */ `;
}
export {
rollupBanner
}