images on the command line
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
images
node_modules
README.md
cli.js
goggles.js
package.json

README.md

Goggles

Images for the command line

Introduction

Ever find yourself ssh'd into a remote server wondering what some image looks like, and without an easy way to look at it? You need goggles.

Install

You'll need Cairo on your system.

Then:

    npm install -g goggles

Use it

    $ goggles lenna.png --width 120

    $ cat mona.jpg | goggles

Programatically ##

    var fs = require('fs')
    , goggles = require('goggles')

    goggles(fs.readFileSync('./cat.jpg') , 130)

Boom

(Please note, like with all goggles, you're gonna have to squint a bit)