add donate info

This commit is contained in:
Kim Biesbjerg
2019-07-31 13:06:09 +02:00
parent 393e1ed03f
commit 7ce01b97e4
7 changed files with 207 additions and 15 deletions

19
src/utils/donate.ts Normal file
View File

@@ -0,0 +1,19 @@
import { yellow } from 'colorette';
import * as boxen from 'boxen';
import * as terminalLink from 'terminal-link';
const url = 'https://donate.biesbjerg.com';
const text = `
If this tool saves you time, please consider making a
donation towards the continued maintainence and development:
${yellow(terminalLink(url, url))}
`;
export const donateMessage = boxen(text.trim(), {
padding: 1,
margin: 0,
borderColor: 'yellow',
backgroundColor: 'black',
dimBorder: true
});