Socket
Socket
Sign inDemoInstall

console-png

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-png

Print PNG images to terminal output


Version published
Weekly downloads
270
decreased by-16.41%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 24 May 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc