Created
June 10, 2019 18:14
-
-
Save cblgh/0e3b24507e52670e64cf9aa4501c8196 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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