Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve the awareness of users to support awesomeness
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env node | ||
|
||
if (!process.env.SUPPRESS_SUPPORT) { | ||
const ANSI_RESET = '\u001b[0m' | ||
const ANSI_GREEN = '\u001b[32m' | ||
const ANSI_YELLOW = '\u001b[33m' | ||
const ANSI_BLUE = '\u001b[96m' | ||
const ANSI_WHITE = '\u001b[37m' | ||
const ANSI_BOLD = '\u001b[1m' | ||
|
||
console.log( // eslint-disable-line | ||
ANSI_GREEN + | ||
'Has SweetAlert2 helped you create amazing applications?\n' + | ||
'You can show your' + ANSI_YELLOW + ' <3 ' + ANSI_GREEN + 'and support by making a donation:\n' + | ||
ANSI_WHITE + ' > ' + | ||
ANSI_BLUE + ANSI_BOLD + 'https://sweetalert2.github.io/#donations\n' + | ||
ANSI_RESET | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters