Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node mac copy to clipboard

function pbcopy(data) {
    var proc = require('child_process').spawn('pbcopy'); 
    proc.stdin.write(data); proc.stdin.end();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #mac #copy #clipboard
ADD COMMENT
Topic
Name
7+9 =