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

@cspotcode/ansi-to-html

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cspotcode/ansi-to-html - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

package.json
{
"name": "@cspotcode/ansi-to-html",
"version": "0.0.1",
"version": "0.0.2",
"bin": "ansi-to-html",

@@ -8,2 +8,10 @@ "files": [

],
"author": {
"name": "Andrew Bradley",
"email": "cspotcode@gmail.com"
},
"homepage": "https://github.com/cspotcode/ansi-to-html",
"bugs": {
"url": "https://github.com/cspotcode/ansi-to-html/issues"
},
"devDependencies": {

@@ -10,0 +18,0 @@ "@tsconfig/node12": "^1.0.9",

15

README.md
## ansi-to-html
CLI tool to convert ANSI colored text to an HTML file, with a few extra features to support me team's use-case.
CLI tool to convert ANSI colored text to an HTML file, with a few extra features to support my team's use-case.
We use it to generate pretty reports of subsets of automated CI tasks. Although CI servers are good at recording and
visualizing build logs, sometimes it is helpful to upload a subset of the logs as a build artifact for easier review.
visualizing build logs, sometimes it is helpful to upload the output of a single command separately as a build artifact
for easier review.
### Features
There are other tools like this one. This tool has a few features they may not have:

@@ -13,3 +16,3 @@

pop into a new tab.
* `#L123`-style linking like Github. Click any line, it goes into the URL hash, copy a link to it.
* Link to a specific line in a log, `#L123`-style like Github. Click any line, JS adds that line-number to the URL, you can copy a link to it.

@@ -45,6 +48,8 @@ ### Usage

For example, [here is the output of `git status`](https://cspotcode.github.io/ansi-to-html/examples/git-status.html) while I was working on this project:
### Examples
[Here is the output of `git status`](https://cspotcode.github.io/ansi-to-html/examples/git-status.html) while I was working on this project:
```
❯ git -c color.status=always status | ansi-to-html > example-git-status.html
❯ git -c color.status=always status | ansi-to-html > examples/git-status.html
```
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