Created
March 8, 2016 00:57
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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