mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-17 07:27:36 -07:00
13 lines
267 B
TypeScript
13 lines
267 B
TypeScript
import * as fs from 'fs';
|
|
|
|
const license = fs.readFileSync(__dirname + '/../../LICENSE', 'utf-8');
|
|
|
|
const licenseHtml = license
|
|
.replace(/\r\n/g, '\n')
|
|
.replace(/(.)\n(.)/g, '$1 $2')
|
|
.replace(/(^|\n)(.*?)($|\n)/g, '<p>$2</p>');
|
|
|
|
export {
|
|
license,
|
|
licenseHtml
|
|
};
|