local-cli/server/util/copyToClipBoard.js
function copyToClipBoard(content) {
  switch (process.platform) {
  case 'darwin':
    var child = spawn('pbcopy', []);
    child.stdin.end(new Buffer(content, 'utf8'));
    return true;
  default:
    return false;
  }
}
function copyToClipBoard(content) {
  switch (process.platform) {
  case 'darwin':
    var child = spawn('pbcopy', []);
    child.stdin.end(new Buffer(content, 'utf8'));
    return true;
  default:
    return false;
  }
}
function copyToClipBoard ( content ) { switch ( process . platform ) { case 'darwin' : var child = spawn ( 'pbcopy' , [ ] ) ; child . stdin . end ( new Buffer ( content , 'utf8' ) ) ; return true ; default : return false ; } }
Copy the content to host system clipboard.
This is only supported on Mac for now.
Copy the content to host system clipboard . This is only supported on Mac for now .