File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 22const gradient = require ( '..' ) ;
33
44const log = console . log ;
5- const str = ' Lorem ipsum dolor sit amet, consectetur adipiscing elit' ;
5+ const str = ' Lorem ipsum dolor sit amet, consectetur adipiscing elit' ;
6+ const title = Buffer . from ( 'DQogICAgICAgICAgICAgICAgICAgICAgXyBfICAgICAgICAgICAgXyAgICAgICAgICAgIF8gICAgICAgIF8gICAgICAgICAgICAgDQogICBfXyBfIF8gX18gX18gXyAgX198IChfKSBfX18gXyBfXyB8IHxfICAgICAgX19ffCB8XyBfIF9fKF8pXyBfXyAgIF9fIF8gDQogIC8gX2AgfCAnX18vIF9gIHwvIF9gIHwgfC8gXyBcICdfIFx8IF9ffF9fX18vIF9ffCBfX3wgJ19ffCB8ICdfIFwgLyBfYCB8DQogfCAoX3wgfCB8IHwgKF98IHwgKF98IHwgfCAgX18vIHwgfCB8IHx8X19fX19cX18gXCB8X3wgfCAgfCB8IHwgfCB8IChffCB8DQogIFxfXywgfF98ICBcX18sX3xcX18sX3xffFxfX198X3wgfF98XF9ffCAgICB8X19fL1xfX3xffCAgfF98X3wgfF98XF9fLCB8DQogIHxfX18vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfF9fXy8gDQo=' , 'base64' ) . toString ( ) ;
7+
8+ for ( const l of title . split ( '\n' ) ) {
9+ log ( gradient . pastel ( l . replace ( / \s / g, 'i' ) ) . replace ( / i / g, ' ' ) ) ;
10+ }
611
712log ( '' ) ;
813
You can’t perform that action at this time.
0 commit comments