|6 days ago||23 days ago|
|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.
Google/zx 4.3.0 release
5 projects | reddit.com/r/shell | 7 Jan 2022
4 projects | dev.to | 30 Dec 2021
The top-level await feature for ES modules makes it easy to use await in CLI scripts (e.g., with .mjs sources and zx), and for dynamic imports and data loading. It extends the await functionality into the module loader, which means that dependent modules will wait for async modules (with top-level await) to be loaded.
Node for server utilities?
1 project | reddit.com/r/node | 20 Dec 2021
Yeah, there's no reason not use Node for scripting work on the server. Google's zx library (https://github.com/google/zx) makes it easy to to do bash-like things using Node.js. You can get pretty fancy with promises and async/await to run things in parallel.
Do you ever use node without express (or an equivalent framework? ;
2 projects | reddit.com/r/node | 28 Nov 2021
For scripting you should have a look at: https://github.com/google/zx It's nodejs but with some nice syntax sugar for scripting.
Passing a dynamic value to package.json scripts
1 project | reddit.com/r/Angular2 | 10 Nov 2021
Umm, for any complex script configuration you can use https://github.com/google/zx other than that it depends on your environment and how are you supplying the value to the script
Scripting Languages of the Future
9 projects | news.ycombinator.com | 7 Nov 2021
I like the idea of the topic, exploring it. But the author feels off in a number of places.
> What TypeScript showed is that you could join together the idea of a flexible lightweight (and optional!) type system onto an existing programming language, and do so successfully. . . .The question then is - what if you created a programming language from the start to have this kind of support?
Personally I just don't think languages matter very much. They're very similar, by & large. They have different tooling, packaging, somewhat different looks/feels for executing code, and their standard libraries are different. But TypeScript is popular & fast at least 90% because it is JS, because it works with JS things. Arguing that we should try to recreate TypeScript apart from JS sounds like a mind blowing waste of time. Also, Deno has good integrated TypeScript support.
One of the main issues I see with easy-parallelism is that it's too easy: there's too many cases for uncontrolled parallelism. Throwing tarn.js or other worker-pools at problems seems all too common. But one is still left stitching together each pool/stage of work. I'd like to see SEDA like architectures emerge, and perhaps get added to something like ZX standard library.
Underwhelmed by Bash functions? Maybe you're using them wrong. I was.
7 projects | reddit.com/r/programming | 31 Oct 2021
A fourth twist is to take off the functional hat and instead use an obscure corner of OOP: multiple inheritance. This isn't natively supported in JS, but some libraries use the technique in the wild (e.g. zx monkeypatches Promises with a facade over the ChildProcess interface). This differs from union types because it's two things simultaneously (rather than one OR the other), and it's up to the consumer to then await it or map over the functor if it needs to, or just access properties synchronously.
I haven't tried it myself, but zx looks like a really simple way to get up and running.
16 projects | news.ycombinator.com | 6 May 2021
I wrote essentially the same thing for [Python](https://github.com/NightMachinary/brish). I have been using it extensively for months, and I’m very happy with it.
I have also used a REST API based on the Python version to implement the same thing easily in other languages, including a nifty [elisp macro](https://github.com/NightMachinary/doom.d/blob/master/night-b...) that lets you do:
(z du -h (split-string (z ls -a) "\n" t))
PS: It does proper quoting, using zsh’s builtin quoting system.16 projects | news.ycombinator.com | 6 May 2021
I wrote essentially the same thing for Python. I have been using it extensively for months, and I’m very happy with it. I have even used the a REST API via the Python version to implement the same thing easily in other languages, including a nifty [elisp macro](https://github.com/NightMachinary/doom.d/blob/master/night-b...) that lets you do:
(z du -h (split-string (z ls -a) "\n" t))
What are some alternatives?
shelljs - :shell: Portable Unix shell commands for Node.js
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell
nx - Smart, Fast and Extensible Build System
execa - Process execution for humans
Commander.js - node.js command-line interfaces made easy
alias-tips - An oh-my-zsh plugin to help remembering those aliases you defined once
chalk - 🖍 Terminal string styling done right
emoji-cheat-sheet - A markdown version emoji cheat sheet
Commander - Compose beautiful command line interfaces in Swift