pz
zx
pz | zx | |
---|---|---|
11 | 115 | |
717 | 41,743 | |
0.4% | 2.7% | |
0.0 | 8.5 | |
about 2 years ago | 6 days ago | |
Python | JavaScript | |
GNU General Public License v3.0 only | 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.
pz
-
Show HN: Pypipe – A Python command-line tool for pipeline processing
Cool!
I was going to ask how this differs in broad strokes from pz, but when I went to get the reference link found that pz hasn't been updated in two years, so that's one big difference.
https://github.com/CZ-NIC/pz
- Python import statements make it inconvenient for inline use in shell scripts
- Program mentioned on here - can anyone remember it?
-
Show HN: Prig – like Awk, but uses Go for “scripting”
TIL about pz (kind of like this but using Python) -- that's very cool! https://github.com/CZ-NIC/pz
-
Easily handle CLI operation via Python instead of regular Bash programs
This seems very useful!
The behaviour of auto-imports https://github.com/CZ-NIC/pz#auto-import seems bit scary:
> Caveat: When accessed first time, the auto-import makes the row reprocessed. It may influence your global variables. Use verbose output to see if something has been auto-imported.
It sounds like this could cause some very subtle bugs. Maybe a strong and clear warning when a line is being reprocessed would help.
- Easily handle day to day CLI operation via Python instead of regular Bash programs.
- GitHub - CZ-NIC/pz: Easily handle day to day CLI operation via Python instead of regular Bash programs.
- Pz: CLI operation via Python instead of regular Bash programs
zx
-
How and why do we bundle zx?
When zx first appeared, it was a tiny esm script that just proposed a new idea for how child_process.spawn API could be enhanced with string template literals.
- 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
[1]: https://github.com/dsherret/dax
[2]: https://github.com/wobsoriano/bnx
- 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
What are some alternatives?
Command-line-text-processing - :zap: From finding text to search and replace, from sorting to beautifying text and more :art:
shelljs - :shell: Portable Unix shell commands for Node.js
zsh-defer - Deferred execution of Zsh commands
execa - Process execution for humans
alias-tips - An oh-my-zsh plugin to help remembering those aliases you defined once
Commander.js - node.js command-line interfaces made easy
nio - Low Overhead Numerical/Native IO library & tools
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
chezmoi - Manage your dotfiles across multiple diverse machines, securely.
oclif - CLI for generating, building, and releasing oclif CLIs. Built by Salesforce.
sheldon - :bowtie: Fast, configurable, shell plugin manager
deno - A modern runtime for JavaScript and TypeScript.