Skip to content

Instantly share code, notes, and snippets.

@cschmidt
Created March 8, 2016 00:57
Show Gist options
  • Save cschmidt/edb4ea7e9ebac9ae11f0 to your computer and use it in GitHub Desktop.
Save cschmidt/edb4ea7e9ebac9ae11f0 to your computer and use it in GitHub Desktop.
Test which version of Node.js is running under AWS Lambda and report if child_process.spawnSync is defined
const child_process = require('child_process');
exports.handler = function(event, context) {
var results = {
version: process.version,
spawn: typeof child_process.spawn,
spawnSync: typeof child_process.spawnSync
};
context.succeed(results);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment