@L11K/

vTum

Nodejs

No description

fork
loading
Files
  • index.js
  • data
  • run
  • src
  • .editorconfig
  • .gitignore
  • LICENSE
  • package-lock.json
  • package.json
  • tsconfig.json
  • tslint.json
  • typings.d.ts
  • yarn.lock
index.js
1
2
3
4
5
6
7
8
9
10
11
12
const { spawnSync } = require('child_process')

console.log('Running command...')

const shell = spawnSync('npm start', { encoding: 'utf-8', shell: true, stdio: 'inherit'})

const http = require('http');

http.createServer(function (req, res) {
  res.write("I'm alive");
  res.end();
}).listen(8080);
node v10.16.0