zx
A tool for writing better scripts (by google)
TypeScript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output. (by microsoft)
Our great sponsors
zx | TypeScript | |
---|---|---|
90 | 1044 | |
35,927 | 87,878 | |
2.1% | 1.7% | |
9.4 | 9.9 | |
6 days ago | 4 days ago | |
JavaScript | TypeScript | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
zx
Posts with mentions or reviews of zx.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-28.
- Show HN: Clamshell- an experimental Python based shell
-
We code most of our DevOps tooling in typescript - are we bad people?
I mean, at some point you're going to end up with a bunch of shell scripts in your repo that will dodge the usual type checks & lint rules, and I've wasted quite some time on bugs that would be caught by such safety nets. I think working with bash is too error-prone, even for smaller scripts, and there's a reason why tools like zx exist.
- Shell Script Best Practices, from a decade of scripting things
-
Awaiting problems in JavaScript
The automatic flattening of Promise> is a minor inconvenience that I faced recently when working with zx scripts (see the Real-life example section in my other article in this series). The root of the problem was that I wanted to get access to the Promise returned from an async function as zx adds methods on that Promise (and calls it a ProcessPromise) and I was unable to, since it was automatically flattened. This led me to evaluate the Promise API and see how different it is from a traditional Future monad.
-
Organizing EBook Files with Python 🐍
Python also has a rich ecosystem of ebook parsing libraries, and fairly easily handles things like file renaming, extensions, environment variables on Linux machines, which is what my NAS box runs. And while my first language is typescript/javascript, so I could’ve utilized something like BASH + Google’s ZX, it felt like a good case to try to get some experience with Python, which I’ve never really used. Luckily VS Code’s intellisense (with some Python plugins), and Python’s relatively simple syntax made it quite easy to get from A→ B in terms of getting the pieces all put together.
-
Third party libraries that include reflink copying?
I stopped writing bash too. I'm writing a lot of TypeScript these days, and for that zx is really cool. I think its Clojure equivalent would be nbb.
-
whats the advantages and disadvantages and limitations of worker thread in nodejs compared to multithreading in frameworks like spring ?
I've also done that, as it is the better solution for applications that are meant to be purely single-threaded. It's also easier than dealing with the async version (either promise-based or callback). Or at least it was, before I discovered https://github.com/google/zx.
-
Bash vs Node
Personally I seldom write bash scripts so when I do usually have to google how to do everything, and I usually have shellcheck in my editor to catch obvious bad practices. I write js much more often so I’ve used Shelljs to avoid such headaches, though it has its own set of conventions to wrap your head around. Zx looks neat too https://github.com/google/zx . If the scripts are going to be maintained by devs without node experience I’d stick with bash.
-
What are the disadvantages of using an interactive shell based on a regular programming language (python, scheme's scsh, etc) vs. bourne shell and bash?
There are many alternative shells out there. The popular ones seem to maintain a degree of compatibility with bourne shell and bash, namely dash and zsh. Some deviate even more, like fish. But then I've learned that it is possible to use shells based on regular programming languages. I've seen people using python instead of bash, which initially I thought was weird, but then wondered "why not?". I've also heard about scheme's scsh, and potentially JavaScript's zx. Never tried them, so maybe they're bad examples.
-
Do you know how many of them have disappeared after making a post like this?
You might be delighted to learn of https://github.com/google/zx :-)
TypeScript
Posts with mentions or reviews of TypeScript.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-26.
-
Movie App With Next.js 13, TailwindCSS & TypeScript 😍
TypeScript
-
Whats Medusa an introduction part 1
Medusa is based on Node.js and the web framework Express medusajs is hosted on GitHub and written in TypeScript.
-
How to use Firestore with Redux in a React application
TypeScript is a strongly typed programming language that builds on JavaScript. In practical terms, if you already know JavaScript, all you need to learn to use TypeScript is how to use types and interfaces.
-
refine vs RedwoodJS
It it based on several core technologies - GraphQL for making API calls, Prisma as an ORM, TypeScript for type safety (optional), Jest for testing, Pino for logging and Storybook to assist with creating UI.
-
Image Optimisation with the TinyPNG API
We're going to initialise a simple Node.js console application called "tinify" using TypeScript and ts-node:
-
Starchart: Choosing a technology
TypeScript for the language
-
How to configure and use Environment Variables in NestJS
NestJS is a framework in Node.js for building efficient, scalable server-side applications and also supports Typescript 😍
-
Blockchains: Ethereum vs Solana vs Avalanche vs MultiversX (Elrond). What are the differences?
MultiversX (former Elrond) MultiversX Virtual Machine (EVM) supports any programming language that can compile Web Assembly smart contracts. These include the likes of TypeScript, C#, Go, C/C++, and Rust. However, since MultiversX’s smart contract framework is based mostly on Rust, Rust is the recommended language.
-
Let’s Build an Encrypted Image Uploader with IPFS, Lit Protocol, and Web3Auth
We will use React and TypeScript to build the application and a few services that facilitate the more complex part of the architecture.
- Preventing more parameters being passed than needed by a type definition?
What are some alternatives?
When comparing zx and TypeScript you can also consider the following projects:
zod - TypeScript-first schema validation with static type inference
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
shelljs - :shell: Portable Unix shell commands for Node.js
esbuild - An extremely fast bundler for the web
Tailwind CSS - A utility-first CSS framework for rapid UI development.
deno - A modern runtime for JavaScript and TypeScript.
rescript-compiler - The compiler for ReScript.
Yup - Dead simple Object schema validation
fp-ts - Functional programming in TypeScript
linaria - Zero-runtime CSS in JS library
Commander.js - node.js command-line interfaces made easy
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time