Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update readme

  • Loading branch information...
commit d4161e7469a419d289fc75ca71d202615bc35a7f 1 parent cb55e6d
@mixu mixu authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 README.md
View
8 README.md
@@ -8,7 +8,7 @@ Convert text with ANSI escape sequences to styled HTML.
```
test[1mBold[32mGreen[31mRed[0mNone
```
-
+
becomes
```html
@@ -35,6 +35,12 @@ document.getElementById('test').innerHTML = ansi2html("test[1mBold")
</script>
```
+In the terminal:
+
+```bash
+git log --color | ansi2html > result.html
+```
+
That's right, ansi2html.js works in Node *and* in the browser, in more or less the same way.
## Supported
Please sign in to comment.
Something went wrong with that request. Please try again.