UNPKG
node-ff
Version:
latest (2.0.0)
2.0.0
1.5.0
1.1.0
A CLI for creating NodeJs projects
github.com/FelipeNevess/Node-CLI
FelipeNevess/Node-CLI
node-ff
/
app
/
src
/
utils
/
terminal
/
TerminalDecoration.ts
13 lines
(9 loc)
•
277 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ red }
from
'chalk'
;
import
{ textSync }
from
'figlet'
;
class
TerminalDecoration
{
decorate
(
text
:
string
) {
const
responseText =
red
(
textSync
(text, {
horizontalLayout
:
'full'
}));
console
.
log
(responseText); } }
export
{
TerminalDecoration
};