News for hackers. Stuff that matters.

Ask HN: What do you use to wrap a CLI and make it an HTTP API?

As a hobby I've been participating in some bug bounty programs. A lot of the tools used are CLIs. For some of them I'd like to wrap the CLI and deploy it as an HTTP endpoint. Optionally, I'd like to extend the CLI (perhaps by combining with other tools). What's your favorite framework/pattern for doing this kind of thing?
( 1 comment | 4 points | on HN )
Re:Ask HN: What do you use to wrap a CLI and make it an HTTP... by fasturdotcom on Sunday November 24, 2019 @01:48AM (#21618850)
Set up node and when you make a request spawn a child process that executes your bash command/file