examples

await shellfie(["\x1b[32mGreen line", "\x1b[31;1mRED bold"], { name: 'small', viewport: { width: 200, height: 200 } });

const testResults = [
"yarn run v1.22.5",
"$ mocha --no-timeouts tests/ --colors",
"",
"",
" shellfie",
"  ✓ should support array of string and output a png file (1106ms)",
"  ✓ should show into img (983ms)",
"  ✓ should support custom viewport (982ms)",
"  ✓ should support long raw output (2287ms)",
"  ✓ should support raw string (1087ms)",
"  ✓ should support complex string (1079ms)",
"  ✓ should support different font family (5541ms)",
"  ✓ should support chartscii fancy example (1123ms)",
"  ✓ should support fancy unsplitted (1082ms)",
"  ✓ should support string output (947ms)",
"  ✓ should magically work with magic numbers (1945ms)",
"  ✓ should work with lolcat (1102ms)",
"",
"",
"  12 passing (19s)",
"",
"Done in 19.60s.",
];
await shellfie(testResults, { name: 'fira', style: { fontFamily: 'Fira Code', fontWeight: 'bold' } });