vorpal
zx
Our great sponsors
vorpal | zx | |
---|---|---|
4 | 114 | |
5,620 | 41,571 | |
- | 2.5% | |
0.0 | 7.6 | |
7 months ago | 1 day ago | |
JavaScript | JavaScript | |
MIT License | Apache License 2.0 |
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.
vorpal
-
Use GNU Emacs
I occasionally try that as well and it sometimes helps but not for things like node apps that use https://vorpal.js.org REPLs. They just aren't usable in shell-mode.
-
google/zx: write shell scripts in JavaScript
Got it, so more about the general idea of using Node to interact with a shell. Fair points but I'm not sure that's where zx falls. I'm looking at it in relation to projects like commander, oclif, and vorpal— frameworks for authoring and packaging local-use CLI tools written in JS, typically aimed at people who know JS and work in a terminal but don't know shell scripting. Those have the overhead of learning a framework, and don't do anything to help you work with the shell. zx seems to come from the other direction: instead of an esoteric framework, shell concepts and shell commands in a Node script.
-
Ask a question before a git commit when committing to a certain folder
Assuming the project uses node, and admittedly it's a lil overkill, but you could use vorpal.
-
Use command from terminal?
Are you wanting to run your nodejs app, and then control it within the same terminal it is running in? If so, take a look at vorpal
zx
- Zx 8.0
- Google ZX – A tool for writing better scripts
-
Dax – Cross-platform shell for Node.js
TIL about zx! https://github.com/google/zx
This suite of tools feels indispensable. Anything to keep me from having to write/maintain bash scripts that are more than a series of commands.
-
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
- Zx: A tool for writing better scritps
-
My script to install husky, commitlint and lint-staged with zx
If you want test it, you can run this script withzx :
-
YavaScript: Write shell scripts in JavaScript/TS instead of bash
I really love writing with zx. https://github.com/google/zx
We have some folks who have gone wild copy-pasting random fancy bash snippets into various developer helpers scripts. Zx did like 90% of that stuff out of the box, without being a pile of chaotic custom bash.
-
Scripting with Go: A Modest Proposal
I ended up using this for my cli scripting needs. https://github.com/google/zx
- And forget about shell scripting in /bin/sh ... I hate to say it, but, this is the middle of 2021 we have react and svelte we need more /etc/shells, we need modern languages all over, we can't do this anymore
-
Bash. For me it is "read only". It is too arcane, even for me. I use Perl now.
lol no javascript
What are some alternatives?
blessed - A high-level terminal interface library for node.js.
shelljs - :shell: Portable Unix shell commands for Node.js
Inquirer.js - A collection of common interactive command line user interfaces.
execa - Process execution for humans
yargs - yargs the modern, pirate-themed successor to optimist.
Commander.js - node.js command-line interfaces made easy
cli-table - Pretty unicode tables for the CLI with Node.JS
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
progress - Flexible ascii progress bar for nodejs
oclif - CLI for generating, building, and releasing oclif CLIs. Built by Salesforce.
multispinner - Multiple, simultaneous, individually controllable spinners for concurrent tasks in Node.js CLI programs
deno - A modern runtime for JavaScript and TypeScript.