Skip to content

abstracts the most cumbersome parts of executing programs with several outputs behind a clear and concise JSON API

License

Notifications You must be signed in to change notification settings

Automattic/exec2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exec2json

exec2json /bin/bash -c 'echo this is my stdout; echo that is my stderr 1>&2' | jq

Outputs:

{
  "command": [
    "/bin/bash",
    "-c",
    "echo this is my stdout; echo that is my stderr 1>&2"
  ],
  "status": 0,
  "stderr": "that is my stderr\n",
  "stdout": "this is my stdout\n",
  "took": 0.004179875
}

About

abstracts the most cumbersome parts of executing programs with several outputs behind a clear and concise JSON API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages