cli-jsx
v2.0.0
Published
Render JSX to Terminal (thin wrapper around cli-html)
Maintainers
Readme
Welcome to cli-jsx
Renderer JSX in the Terminal.
Supports pretty tables and syntax highlighting
As of v2,
cli-jsxis a thin wrapper aroundcli-html. The implementation (thejsxcommand andrenderJSX) lives incli-html; this package just re-exports it. Usecli-htmldirectly if you prefer.
Install
npm i -g cli-jsxExample
jsx demo.jsxThis will produce the following:


Usage as module
npm i cli-jsxrenderJSX is async (react/react-dom are loaded lazily) and renders straight to
the terminal:
import renderJSX from 'cli-jsx';
const App = () => <h1>Hello World</h1>;
console.log(await renderJSX(<App />));Run tests
npm run testAuthor
👤Grigorii Horos
- Github: @horosgrisa
Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
License
Copyright © 2019 Grigorii Horos.
This project is GPL-3.0-or-later licensed.
