Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mixu committed Sep 5, 2013
1 parent cb55e6d commit d4161e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Convert text with ANSI escape sequences to styled HTML.
```
test[1mBold[32mGreen[31mRed[0mNone
```

becomes

```html
Expand All @@ -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
Expand Down

0 comments on commit d4161e7

Please sign in to comment.