This commit is contained in:
syuilo
2018-01-01 02:08:41 +09:00
parent 727ecf86b9
commit 88e4f1b287
5 changed files with 24 additions and 7 deletions

View File

@@ -0,0 +1,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
};