"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/cli/atom.js" (7 Feb 2017, 347 Bytes) of archive /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 var path  = require('path');
    2 var spawn = require('child_process').spawn;
    3 
    4 var atomCommandPath = path.resolve(__dirname, '..', '..', 'atom.exe');
    5 var arguments = process.argv.slice(2);
    6 arguments.unshift('--executed-from', process.cwd());
    7 var options = {detached: true, stdio: 'ignore'};
    8 spawn(atomCommandPath, arguments, options);
    9 process.exit(0);