UNPKG

@6i/ink-tools

Version:

Utilities to compile story Ink file into JSON.

29 lines (25 loc) 809 B
/* * @copyright 6i (2020) * @author 20100 <vb20100bv@gmail.com> * Released under a MIT license. */ const chalk = require('chalk'); function splashscreen(program) { let splashscreen = ` ██████╗ ██╗ ██╔════╝ ║ ` + program._name + ` - v` + program._version + ` ███████ ██║ ██ ██╗ ██║ Copyright © 2020 ╚██████╔╝ ██║ ` + program._homepage + ` ╚═════╝ ╚═╝ ` splashscreen = splashscreen.replace(/█+/gi, (match) => { return chalk.blue(match); }).replace(/═|╝|╚|║|╔|╗/gi, (match) => { return chalk.gray(match); }); return splashscreen; } module.exports = { splashscreen }