summaryrefslogtreecommitdiff
path: root/src/misc/license.ts
blob: d36af665cd13098b2b80d818c72f6018f7e0f03b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
};