13 September 2017 / nodejs Copy to clipboard from NodeJS const output = "some string"; require("child_process").spawn("clip").stdin.end(output);