@Kognise/

Sys.X

Nodejs

No description

fork
loading
Files
  • index.js
  • commands
  • filesys
  • static
  • commandsys.js
  • defaultlogins.js
  • filesys.js
  • inoutsys.js
  • inoutsys.web.js
  • loginsys.js
  • main.js
  • main.web.js
  • package-lock.json
  • sandboxsys.js
  • users.json
  • web.html
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
// This was my submission for the 5th REPL.it codejam
// The challenge was to make an operating system

const execa = require('execa')

const web = execa.shell('node main.web.js')
web.stdout.pipe(process.stdout)
web.stderr.pipe(process.stderr)

const local = execa.shell('node main.js')
process.stdin.pipe(local.stdin)
local.stdout.pipe(process.stdout)
local.stderr.pipe(process.stderr)
node v10.16.0