Skip to content

Commit

Permalink
Indentation and syntax highlighting of shell code
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes authored and GreLI committed Sep 29, 2017
1 parent cbaefd8 commit 7718a63
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,42 +107,59 @@ Arguments:

* with files:

$ svgo test.svg
```sh
$ svgo test.svg
```

or:

$ svgo test.svg test.min.svg
```sh
$ svgo test.svg test.min.svg
```

* with STDIN / STDOUT:

$ cat test.svg | svgo -i - -o - > test.min.svg
```sh
$ cat test.svg | svgo -i - -o - > test.min.svg
```

* with folder

$ svgo -f ../path/to/folder/with/svg/files
```sh
$ svgo -f ../path/to/folder/with/svg/files
```

or:

$ svgo -f ../path/to/folder/with/svg/files -o ../path/to/folder/with/svg/output
```sh
$ svgo -f ../path/to/folder/with/svg/files -o ../path/to/folder/with/svg/output
```

* with strings:

$ svgo -s '<svg version="1.1">test</svg>' -o test.min.svg
```sh
$ svgo -s '<svg version="1.1">test</svg>' -o test.min.svg
```

or even with Data URI base64:

$ svgo -s 'data:image/svg+xml;base64,…' -o test.min.svg
```sh
$ svgo -s 'data:image/svg+xml;base64,...' -o test.min.svg
```

* with SVGZ:

from `.svgz` to `.svg`:

$ gunzip -c test.svgz | svgo -i - -o test.min.svg

```sh
$ gunzip -c test.svgz | svgo -i - -o test.min.svg
```

from `.svg` to `.svgz`:

$ svgo test.svg -o - | gzip -cfq9 > test.svgz

```sh
$ svgo test.svg -o - | gzip -cfq9 > test.svgz
```

### Other Ways to Use SVGO

Expand Down

0 comments on commit 7718a63

Please sign in to comment.