"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/script/bundled-node-version.js" (11 Apr 2017, 260 Bytes) of package /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 module.exports = function(filename, callback) {
    2   require('child_process').exec(filename + ' -v', function(error, stdout) {
    3     var version = null;
    4     if (stdout != null) {
    5       version = stdout.toString().trim();
    6     }
    7     callback(error, version);
    8   });
    9 }