Hacker News new | past | comments | ask | show | jobs | submit login

Most of my shell scripts are in JavaScript. It meets most of your requirements, as well as having good support for async behavior. I'll use node for simple scripts and deno if I want to compile to an executable or if it just feel like it.

The language doesn't have native pipes, but I'll sometimes include them in a command string `const output= exec("firstcommand ${somevariable} | secondcommand")`

As an added bonus you have access to the npm ecosystem.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: