summaryrefslogtreecommitdiff
path: root/src/common/build/license.ts
blob: e5c264df8a1abe55252399f5c9f6b48551368711 (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
};