mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-24 11:38:11 +09:00
14 lines
270 B
TypeScript
14 lines
270 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
|
|
};
|