Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ansi-html-community

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-html-community

An elegant lib that converts the chalked (ANSI) text to HTML. (Community)

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.8M
increased by96.05%
Maintainers
1
Weekly downloads
 
Created

What is ansi-html-community?

The ansi-html-community package is a utility for converting ANSI escape codes in strings into HTML. This is particularly useful for displaying styled console output (like colors, bold, underline) directly on web pages.

What are ansi-html-community's main functionalities?

Convert ANSI codes to HTML

This feature allows you to convert strings containing ANSI escape codes into HTML, enabling the display of styled text in web applications.

const ansiHTML = require('ansi-html-community');
const str = '\u001b[31mHello World\u001b[39m';
const html = ansiHTML(str);
console.log(html); // Outputs: '<span style="color:#FF0000;">Hello World</span>'

Other packages similar to ansi-html-community

Keywords

FAQs

Package last updated on 05 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc