Socket
Socket
Sign inDemoInstall

console-png

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    console-png

Print PNG images to terminal output


Version published
Weekly downloads
1.4K
increased by46.44%
Maintainers
1
Install size
657 kB
Created
Weekly downloads
 

Readme

Source

console-png

NPM Version Build Status

Print PNG images to terminal output.

Install

To use this on your terminal:

npm install -g console-png

To use this programatically:

npm install --save console-png

Terminal Usage

> console-png
Usage: console-png [PNG FILE]...
> console-png apple.png
{image shown here}

Example Usage

require('console-png').attachTo(console);

var image = require('fs').readFileSync(__dirname + '/nodejs-green.png');

console.png(image);

Screenshot

Alternate Usage

var pngStringify = require('console-png');

var image = require('fs').readFileSync(__dirname + '/nodejs-green.png');

pngStringify(image, function (err, string) {
  if (err) throw err;
  console.log(string);
})

Keywords

FAQs

Last updated on 30 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc