node-spawn-async
bnx
node-spawn-async | bnx | |
---|---|---|
1 | 1 | |
20 | 118 | |
- | - | |
10.0 | 10.0 | |
over 2 years ago | 5 months ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
node-spawn-async
-
The Bun Shell
One thing that surprised me about Node was how slow the default way to shelling out (child_process) could be (probably https://github.com/nodejs/node/issues/14917).
Although according to the linked issue, it has been "fixed", I still ran into a problem during a batch script that was calling imagemagick through a shell for each file in a massive directory; profiling was telling me that starting (not completing) (yes, I was using the async version) the child process increasingly slows, from sub-millisecond for the first few spawns, to eventually hundreds of milliseconds or seconds... Eventually I had to resort to doing only single spawn a bash script that in turn did all the shelling out.
It seems that the linked execa still relies on child_process and therefore has the same issue. It saddens me to see the only package for node that appears to actually fix this and provide a workaround seems to be https://github.com/TritonDataCenter/node-spawn-async and unmaintained.
bnx
-
The Bun Shell
Great point! According to https://github.com/oven-sh/bun/blob/b433beb016470b87850f3c01..., Bun Shell took inspiration from zx[0], dax[1] and bnx[2]
[0]: https://github.com/google/zx
[1]: https://github.com/dsherret/dax
[2]: https://github.com/wobsoriano/bnx
What are some alternatives?
murex - A smarter shell and scripting environment with advanced features designed for usability, safety and productivity (eg smarter DevOps tooling)
shelljs - :shell: Portable Unix shell commands for Node.js
zx - A tool for writing better scripts
exa-kernel - EXA Kernel
awesome-tagged-templates - A list of libraries and learning resources for ES2015 tagged template literals
cinnamon - A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
node - Node.js JavaScript runtime ✨🐢🚀✨
bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
dax - Cross-platform shell tools for Deno and Node.js inspired by zx.
rimraf - A `rm -rf` util for nodejs