Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

picture-tube

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picture-tube

render 256 color images on the terminal

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
567
increased by12.95%
Maintainers
1
Weekly downloads
 
Created
Source

picture-tube

Render images on the terminal.

example

command

picture tube robot

code

var pictureTube = require('picture-tube')
var tube = pictureTube();
tube.pipe(process.stdout);

var fs = require('fs');
fs.createReadStream('robot.png').pipe(tube);

usage

Usage: picture-tube OPTIONS { file or uri }

Options:
  --cols  number of columns to use for output

methods

var pictureTube = require('picture-tube');

var tube = pictureTube(opts)

Return a readable/writable stream that reads png image data and writes ansi terminal codes.

Set the number of columns to display the image as with opts.cols.

Right now only png files work.

install

To install as a library, with npm do:

npm install picture-tube

To install the command-line tool, with npm do:

npm install -g picture-tube

license

MIT

Keywords

FAQs

Package last updated on 08 May 2012

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