Socket
Socket
Sign inDemoInstall

ansi-html

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "ansi-html",
"version": "0.0.1",
"version": "0.0.2",
"description": "An elegant lib that converts the chalked (ANSI) text to HTML.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,4 +6,4 @@ ansi-html [![NPM version](https://badge.fury.io/js/ansi-html.svg)](http://badge.fury.io/js/ansi-html) [![Build Status](https://travis-ci.org/Tjatse/ansi-html.svg?branch=master)](https://travis-ci.org/Tjatse/ansi-html)

# Coverage
All styles of [chalk](https://github.com/sindresorhus/chalk).
There are over **150** randomized test cases under `test`.
- All styles of [chalk](https://github.com/sindresorhus/chalk) (100%).
- There are over **150** randomized test cases under `test`.

@@ -16,11 +16,10 @@ # Installation

# Usage
```javascript
var ansiHTML = require('ansi-html');
var str = ansiHTML('[ANSI_TEXT]');
```
var ansiHTML = require('ansi-html);
var str = ansiHTML([ANSI_TEXT]);
```
e.g.:
```javascript
var ansiHTML = require('../'),
chalk = require('chalk');
var chalk = require('chalk');

@@ -35,5 +34,5 @@ var str = chalk.bold.red('foo') + ' bar';

# Exposed Tags
```
```javascript
var openTags = ansiHTML.tags.open;
var openTags = ansiHTML.tags.close;
var closeTags = ansiHTML.tags.close;
```

@@ -40,0 +39,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc