Skip to content

Instantly share code, notes, and snippets.

@cblgh

cblgh/img-2-ascii.js

Created Jun 10, 2019
Embed
What would you like to do?
var asciify = require('asciify-image')
var options = {
fit: 'box',
width: process.stdout.columns,
height: process.stdout.rows
}
asciify('cabal.png', options)
.then(function (asciified) {
// Print asciified image to console
console.log(asciified)
})
.catch(function (err) {
// Print error to console
console.error(err)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment