2018-01-01 02:08:41 +09:00
|
|
|
import * as fs from 'fs';
|
|
|
|
|
2018-03-29 01:20:40 +09:00
|
|
|
const license = fs.readFileSync(__dirname + '/../../LICENSE', 'utf-8');
|
2018-01-01 02:08:41 +09:00
|
|
|
|
|
|
|
const licenseHtml = license
|
|
|
|
.replace(/\r\n/g, '\n')
|
|
|
|
.replace(/(.)\n(.)/g, '$1 $2')
|
|
|
|
.replace(/(^|\n)(.*?)($|\n)/g, '<p>$2</p>');
|
|
|
|
|
|
|
|
export {
|
|
|
|
license,
|
|
|
|
licenseHtml
|
|
|
|
};
|