Skip to content

Instantly share code, notes, and snippets.

@mkremins
Created April 17, 2014 21:41
Show Gist options
  • Select an option

  • Save mkremins/11013151 to your computer and use it in GitHub Desktop.

Select an option

Save mkremins/11013151 to your computer and use it in GitHub Desktop.

Revisions

  1. mkremins created this gist Apr 17, 2014.
    5 changes: 5 additions & 0 deletions pbcopy.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    function pbcopy(data) {
    var proc = require('child_process').spawn('pbcopy');
    proc.stdin.write(data);
    proc.stdin.end();
    }