diff --git a/README.md b/README.md index 5855186..1a38e3c 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ If you're on Windows, use the open source telnet client [PuTTY](https://www.chia ## How to install it locally +### With npm + If you haven't already got Node.js >= version 4.5, then [go get it](http://nodejs.org/). ``` @@ -34,6 +36,14 @@ npm install -g mapscii If you're on OSX, or get an error about file permissions, you may need to do ```sudo npm install -g mapscii``` +### With snap + +In any of the [supported Linux distros](https://snapcraft.io/docs/core/install): + + sudo snap install mapscii + +(This snap is maintained by [@nathanhaines](https://github.com/nathanhaines/)) + ## Running This is pretty simple too. diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..52a420d --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,19 @@ +name: mapscii +version: master +summary: The Whole World In Your Console +description: | + A node.js based Vector Tile to Braille and ASCII renderer for + xterm-compatible terminals. + +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict + +apps: + mapscii: + command: mapscii + plugs: [network] + +parts: + mapscii: + source: . + plugin: nodejs diff --git a/src/BrailleBuffer.js b/src/BrailleBuffer.js index 56ccdac..e229a08 100644 --- a/src/BrailleBuffer.js +++ b/src/BrailleBuffer.js @@ -2,7 +2,7 @@ termap - Terminal Map Viewer by Michael Strassburger - Simple pixel to barille character mapper + Simple pixel to braille character mapper Implementation inspired by node-drawille (https://github.com/madbence/node-drawille) * added color support