Skip to content

Instantly share code, notes, and snippets.

Avatar
🍕
craving pizza

Ami Blonder fuzzyami

🍕
craving pizza
  • TLV
View GitHub Profile
View handler.js
var child_process = require('child_process');
exports.handler = function(event, context) {
var proc = spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' });
proc.on('close', function(code){
if(code !== 0) {
return context.done(new Error("Process exited with non-zero status code"));
}