xavi-/node-copy-paste — pull request #2 by manuelvanrijn (2012-10-03 08:00:17+00:00)
Title: exec-sync and CLIP command fix on Windows

Because I'd had some trouble with getting `ffi` to work on windows I've investigated the problem. It seemed a problem with dependencies regarding the `execSync` module used in this project.

The execSync uses `"ffi": "~1.0.0"` resulting in installing version `1.0.7`, which is outdated.

I've changed the `execSync` module to `exec-sync` which uses `"ffi": "=1.1.2"`. Note that this also isn't the latest version, but I'm now able to compile `ffi` on Windows.

After solving this problem it seemed the arguments specified in the config for win32 result in a invalid command. The command on Windows for CLIP should be `echo "test" | CLIP` instead of `echo "test" | CLIP -selection clipboard`