npm.io
1.0.4 • Published 9 years agoCLI

dreamcmd

Licence
ISC
Version
1.0.4
Deps
3
Vulns
3
Weekly
0

DreamCMD

DreamCMD is a NodeJS server that executes a command after a HTTP request is received.

How it works

A http request is sent

GET http://localhost/ping

Then a command get executed

echo pong

Installation

sudo npm install -g dream-cmd

Config.json

The default config.json looks like this

{
  "port": 8080,
  "commands": [
    {
      "path": "/notepad",
      "cmd": "notepad"
    }
  ]
}