serve-exec

0.0.0 • Public • Published

serve-exec

Install with npm install serve-exec --g.

This is a small cli experiment with Node pipes and exec. It allows you to expose stdout of subshell commands through a temporary server.

Now you can start a server:

$ serve-exec "echo test" "echo what"
Serving on localhost:9090

The endpoints look like this, they are serving stdout of the subshells.

$ curl localhost:9090/0
test
$ curl localhost:9090/1
what

Every endpoint can be only requested once. After all endpoints have been requested once the server is shut down.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i serve-exec

      Weekly Downloads

      0

      Version

      0.0.0

      License

      MIT

      Last publish

      Collaborators

      • finnpauls