Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed May 18, 2024
1 parent a43b478 commit 1ab4374
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansi2-wasm/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## usage

```bash
npm i ansi2 -g

neofetch | ansi2 --format=svg --theme=vscode > ./neofetch.svg
```
37 changes: 37 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## [ansi2](./ansi2)

```rs
use ansi2::{Canvas};

let canvas = Canvas::new(s);
for row in canvas.pixels.iter() {
for pixel in row.iter() {
// draw pixel
}
}
```

## [ansi2-wasm](./ansi2-wasm)
```
npm i ansi2 -g
neofetch | ansi2 --format=svg --theme=vscode > ./neofetch.svg
```


## [ansi2html](./ansi2html)
```
cargo install ansi2html
neofetch | ansi2html > neofetch.html
```

## [ansi2svg](./ansi2svg)

```
cargo install ansi2svg
neofetch | ansi2svg > neofetch.svg
```

0 comments on commit 1ab4374

Please sign in to comment.