Skip to content

Instantly share code, notes, and snippets.

@laser
Created April 29, 2015 23:28
Show Gist options
  • Save laser/0c85ee4e972945a82123 to your computer and use it in GitHub Desktop.
Save laser/0c85ee4e972945a82123 to your computer and use it in GitHub Desktop.
Variadic `exec` call
/* @flow */
var exec = require('child_process').exec;
exec('ls', function(err, line) {
console.log('zomg');
});
16:26 $ flow
Flow server launched for /Users/erinswenson-healey/dev/flarp
Spawned flow server (child pid=39747)
Logs will go to /var/folders/0_/x_fvm0dj0zb6r__7n967b0840000gn/T/flow/zSUserszSerinswenson-healeyzSdevzSflarp.log
The flow server will be ready in a moment.
/Users/erinswenson-healey/dev/flarp/demo.js:5:1,7:2: function call
Too few arguments (expected default/rest parameters in function)
/Users/erinswenson-healey/dev/flarp/demo.js:3:12,40: function type
Found 1 error
@laser
Copy link
Author

laser commented Apr 29, 2015

Link to 0.10 Node.js bindings here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment