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

screencap-stream

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

screencap-stream

screen capture streams

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

screencap-stream

Take a screencap and return it as a stream. Today OSX. Tomorrow, CROSS PLATFORM!!!

Usage

streams

var screencap = require('screencap-stream')
screencap.createReadStream()
  .on('error', function(err) {
    process.stderr.write(err.toString())
    process.exit(-1)
  })
  .pipe(process.stdout)

callback

var screencap = require('screencap-stream')
screencap(function(err, readStream) {
  ...
})

screencap binary

Install it:

npm install -g screencap-stream

Take a screenshot (png) and output to stdout:

screencap

And now add it to ipfs:

screencap | ipfs add

And for a publish one-liner

echo "http://gateway.ipfs.io/ipfs/"$(screencap | ipfs add -q)

ipfs-cap binary

Capture screenshots, publish them to IPFS, and copy the link to the clipboard.

Examples:

# default name based on date
> ipfs-cap
http://gateway.ipfs.io/ipfs/QmfV9gpmi9yT4J4fWWJH2xdrAUYbmn3JYZPWCN5hsMnA9A/screencap.2015-07-04T01:21:00Z.png

# name argument
> ipfs-cap laser-raptor.png
http://gateway.ipfs.io/ipfs/QmdCcY49eXipYJQpZL2yAuu2Jv8QbddJE2Zub3cfwc3aPz/laser-raptor.png

# verbose
> ipfs-cap -v hacking-too-much-time.png
capturing screen... QmRT4WfAYmt6EQmSWLNwjk9TU75ENV3JZum2PtGPq5V63R
constructing dir... Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEg
copying url to clipboard... copied
http://gateway.ipfs.io/ipfs/Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEg/hacking-too-much-time.png

Install it with:

npm install -g screencap-stream

Keywords

FAQs

Package last updated on 04 Jul 2015

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