This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

foton-terminal
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Foton Terminal

Foton Terminal is a CLI formatting tool that structures output in a similar way to React elements.

Getting started

Install

npm i -D foton-terminal

Add a new element

import Foton from 'foton-terminal'

const greeting = new Foton.Element('p')
greeting.content = 'Hello World!'

greeting.print()
// Prints 'Hello World!' to the CLI

Apply styling to element

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()

Screenshot 2021-12-03 at 14 25 50

Package Sidebar

Install

npm i foton-terminal

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

15.4 kB

Total Files

14

Last publish

Collaborators

  • caspersocio