screencap-stream
Take a screencap and return it as a stream. Today OSX. Tomorrow, CROSS PLATFORM!!!
Usage
streams
var screencap = screencap
callback
var screencap =
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-caphttp://gateway.ipfs.io/ipfs/QmfV9gpmi9yT4J4fWWJH2xdrAUYbmn3JYZPWCN5hsMnA9A/screencap.2015-07-04T01:21:00Z.png # name argument > ipfs-cap laser-raptor.pnghttp://gateway.ipfs.io/ipfs/QmdCcY49eXipYJQpZL2yAuu2Jv8QbddJE2Zub3cfwc3aPz/laser-raptor.png # verbose > ipfs-cap -v hacking-too-much-time.pngcapturing screen... QmRT4WfAYmt6EQmSWLNwjk9TU75ENV3JZum2PtGPq5V63Rconstructing dir... Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEgcopying url to clipboard... copiedhttp://gateway.ipfs.io/ipfs/Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEg/hacking-too-much-time.png
Install it with:
npm install -g screencap-stream