Skip to content

grigorii-horos/cli-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aa61d0f · Jun 20, 2023
Dec 27, 2021
Jul 10, 2022
Jun 20, 2023
Jun 20, 2023
Jun 20, 2023
Jan 19, 2023
Jul 10, 2022
Feb 18, 2021
Dec 27, 2021
Jul 10, 2019
Jun 20, 2023
Jan 19, 2023
Jun 20, 2023
Jan 19, 2023

Repository files navigation

Welcome to cli-html

Version Documentation Maintenance License: GPL-3.0 Downloads

Renderer HTML in the Terminal. Supports pretty tables and syntax highlighting

Install

npm i -g cli-html

Example

html examples/demo.html

This will produce the following:

Screenshot of cli-html

Usage as module

npm i cli-html
import cliHtml from 'cli-html';

const html = `
<h1>Hello World</h1>
`

console.log(cliHtml(html));

Run tests

npm run test

Author

👤Grigorii Horos

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.