Format like this might be okay:

```javascript
var copyCmd = {
   linux: 'xclip -selection CLIPBOARD',
   darwin: 'pbcopy'
}[process.platform];
```