copy2cb
v1.0.5
Published
A small module for CLI tools to write to both process.stdout and clipboard
Downloads
244
Readme
copy2cb
A small module for CLI tools to write to both process.stdout
and the clipboard.
This is mostly just a wrapper of the awesome copy-paste module.
Install
npm install --save copy2cb
How-to
var copy2cb = require('copy2cb')
var text = 'some string you want your command to write to stdout and also copy to your clipboard'
copy2cb(text, function() { process.exit(0) })