2025-01-17 09:13:47 +01:00
|
|
|
import fs from 'fs';
|
2024-11-15 13:51:58 +01:00
|
|
|
import pkg from '../package.json' with { type: 'json' };
|
2024-01-29 13:48:14 -05:00
|
|
|
|
2025-01-24 16:54:10 +01:00
|
|
|
const license = fs.readFileSync('LICENSE', 'utf-8');
|
2025-01-17 09:13:47 +01:00
|
|
|
|
2026-04-24 12:42:50 +04:00
|
|
|
export function getHTMLBanner() {
|
|
|
|
|
return `\
|
|
|
|
|
<!--
|
|
|
|
|
${pkg.name} v${pkg.version} - ${pkg.license}
|
|
|
|
|
|
|
|
|
|
This source code is licensed under the ${pkg.license} license.
|
|
|
|
|
See the LICENSE file in the root directory of this source tree.
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-29 13:48:14 -05:00
|
|
|
export function getJSBanner() {
|
2026-04-24 12:42:50 +04:00
|
|
|
return `\
|
|
|
|
|
/**
|
|
|
|
|
* @file
|
2024-01-29 13:48:14 -05:00
|
|
|
* @license ${pkg.name} v${pkg.version} - ${pkg.license}
|
|
|
|
|
*
|
2026-04-24 12:42:50 +04:00
|
|
|
* This source code is licensed under the ${pkg.license} license.
|
|
|
|
|
* See the LICENSE file in the root directory of this source tree.
|
2024-01-29 13:48:14 -05:00
|
|
|
*/
|
|
|
|
|
`;
|
|
|
|
|
}
|