Foton Terminal is a CLI formatting tool that structures output in a similar way to React elements.
npm i -D foton-terminal
import Foton from 'foton-terminal'
const greeting = new Foton.Element('p')
greeting.content = 'Hello World!'
greeting.print()
// Prints 'Hello World!' to the CLI
import Foton from 'foton-terminal'
const status = new Foton.Element('p')
status.content = 'Passing'
status.style = {
backgroundColor: 'green',
color: 'black',
margin: 2,
textTransform: 'uppercase',
}
status.print()