zx VS deno

Compare zx vs deno and see what are their differences.

zx

A tool for writing better scripts (by google)

deno

A modern runtime for JavaScript and TypeScript. (by denoland)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
zx deno
49 150
23,666 79,024
1.3% 0.7%
9.2 9.9
11 days ago 2 days ago
JavaScript Rust
Apache License 2.0 MIT License
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.

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 2021-11-28.
  • 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
    This talks a bunch about the "good run" of current scripting languages, including for example JavaScript.

    But JavaScript, as an actual scripting language, has been pretty primitive but finally starting to become a real candidate for actual scripting. There's imo crufty not very great options like shelljs[1]. But adding a tagged-template string for system(), for calling things, and a little bit of standard library has made JS a much more interesting & competent scripting language. Those efforts are being done in ZX[2].

    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.

    On the topic of easy parallelism, JavaScript promises are imo quite easy to stitch together & use & quite available.

    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[3] like architectures emerge, and perhaps get added to something like ZX standard library.

    [1] https://github.com/shelljs/shelljs

    [2] https://github.com/google/zx

    [3] https://en.wikipedia.org/wiki/Staged_event-driven_architectu...

  • Underwhelmed by Bash functions? Maybe you're using them wrong. I was.
    7 projects | reddit.com/r/programming | 31 Oct 2021
  • On multisynchronicity
    2 projects | reddit.com/r/javascript | 29 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.
  • Automation ideas with Javascript:
    2 projects | reddit.com/r/learnjavascript | 28 Oct 2021
    I haven't tried it myself, but zx looks like a really simple way to get up and running.
  • Hacking Fish Script In Emacs
    10 projects | dev.to | 7 Oct 2021
    I think bash script is the most written script in the world, but the grammar is so old. These days, zx script which grammar like JavaScript had published by google. But we cannot use zx as a login shell, so I think we should not use it.
  • A single person answered 76k questions about SQL on StackOverflow. Averaging 22.8 answers per day, every day, for the past 8.6 years.
    3 projects | reddit.com/r/programming | 24 Sep 2021
    google made this to replace bash: https://github.com/google/zx
  • Introduction
    1 project | dev.to | 10 Sep 2021
    As a starting point, this week I explored trending projects on GitHub. I was amazed by the number of interesting projects out there, but one that especially caught my eye was google/zx, as it provides a way to write bash scripts with JavaScript
  • Wednesday Links - Edition 2021-09-01
    1 project | dev.to | 1 Sep 2021
    zx - bash in JS (1 min)🖥️ https://github.com/google/zx

deno

Posts with mentions or reviews of deno. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-27.
  • A new way to note stuff you want to find easily and quickly
    2 projects | news.ycombinator.com | 27 Nov 2021
    Not to mention homonyms, like the JS runtime Deno: https://deno.land/
  • Lets build a web crawler
    3 projects | dev.to | 20 Nov 2021
    import {DOMParser} from 'https://deno.land/x/deno_dom/deno-dom-wasm.ts'; import {v4} from "https://deno.land/std/uuid/mod.ts"; export async function catalogue_links(origin:string, text:string):Promise{ return new Promise(function(resolve) { try { let link_set = Array(); if(text.length > 1) { const document: any = new DOMParser().parseFromString(text, 'text/html'); if (document === undefined) { let funnel_point = "cataloguer.ts" let funk = "crawl" let error = "unable to interchange gen_object" let id = v4.generate() resolve(link_set) } else { let link_jagged_array = Array>( document.querySelectorAll('a'), document.querySelectorAll('link'), document.querySelectorAll('base'), document.querySelectorAll('area') ) for (let i = 0; i < link_jagged_array.length; i++) { for (let j = 0; j < link_jagged_array[i].length; j++) { if (link_jagged_array[i][j].attributes.href !== undefined && link_jagged_array[i][j].attributes.href.length > 0) { link_set.push(link_jagged_array[i][j].attributes.href) } } } link_set = [...new Set(link_set)] // @ts-ignore let fully_parsed_links = link_parse(origin, link_set) resolve(fully_parsed_links) } }else{ resolve(link_set) } }catch(error){ console.error(error) } }) } export async function catalogue_basic_data(origin:string, text:string):Promise{ return new Promise(function(resolve) { try { let link_set = Array(); if(text.length > 1) { const document: any = new DOMParser().parseFromString(text, 'text/html'); if (document === undefined) { console.error("document not defined") } else { let link_jagged_array = Array>( document.querySelectorAll('a'), document.querySelectorAll('link'), document.querySelectorAll('base'), document.querySelectorAll('area') ) let meta_information = document.querySelectorAll('meta') for (let i = 0; i < link_jagged_array.length; i++) { for (let j = 0; j < link_jagged_array[i].length; j++) { if (link_jagged_array[i][j].attributes.href !== undefined && link_jagged_array[i][j].attributes.href.length > 0) { link_set.push(link_jagged_array[i][j].attributes.href) } } } link_set = [...new Set(link_set)] // @ts-ignore let fully_parsed_links = link_parse(origin, link_set) let parsed_meta_information = meta_parse(meta_information) let archives = { link_data:fully_parsed_links, meta_data:parsed_meta_information } resolve(archives) } }else{ resolve(link_set) } }catch(error){ let funnel_point = "cataloguer.ts" let funk = "crawl" let id = v4.generate() console.error(error) } }) } function meta_parse(a:Array):Array{ try { let out = Array(); for (let i = 0; i < a.length; i++) { if (a[i].attributes.content !== undefined && a[i].attributes.content !== null) { let meta_tag = { name: "", content: Array() } if (a[i].attributes.charset !== undefined) { meta_tag.name = "charset" meta_tag.content.push(a[i].attributes.charset) out.push(meta_tag) continue } else if (a[i].attributes.property !== undefined) { meta_tag.name = a[i].attributes.property meta_tag.content = a[i].attributes.content.split(",") out.push(meta_tag) continue } else if (a[i].attributes["http-equiv"] !== undefined) { meta_tag.name = a[i].attributes["http-equiv"] meta_tag.content = a[i].attributes.content.split(",") out.push(meta_tag) continue } else if (a[i].attributes.name !== undefined) { meta_tag.name = a[i].attributes.name meta_tag.content = a[i].attributes.content.split(",") out.push(meta_tag) continue }else { out.push({ "meta-related":a[i].attributes.content }) } } } return out }catch(error){ console.log("crawler-tools.ts") Deno.exit(2) } } function meta_check(a:string):Boolean{ if ( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(a) || /(tel:.*)/.test(a) || /(javascript:.*)/.test(a) || /(mailto:.*)/.test(a) ) { return true }else{ return false } } function link_parse(domain:string, lineage_links: Array):any{ try { let c: Array = new Array() if (lineage_links.length > 1) { for (let i = 0; i < lineage_links.length; i++) { if ( !/\s/g.test(lineage_links[i]) && lineage_links[i].length > 0 ) { let test = lineage_links[i].substring(0, 4) if (meta_check(lineage_links[i])) { continue } else if (/[\/]/.test(test.substring(0, 1))) { if (/[\/]/.test(test.substring(1, 2))) { let reparse_backslash = lineage_links[i].slice(1, lineage_links[i].length) lineage_links[i] = reparse_backslash } c.push(new URL(domain + lineage_links[i])) continue } else if ( (/\.|#|\?|[A-Za-z0-9]/.test(test.substring(0, 1)) && !/(http)/.test(test)) ) { try { //weed out potential non http protos let url = new URL(lineage_links[i]) } catch { let url = new URL("/" + lineage_links[i], domain) c.push(url) } continue } else if (/\\\"/.test(test)) { let edge_case_split_tester = lineage_links[i].split(/\\\"/) lineage_links[i] = edge_case_split_tester[0] if (!/http/.test(lineage_links[i].substring(0, 4))) { let url = new URL("/" + lineage_links[i], domain) c.push(url) continue } } else { try { let link_to_test = new URL(lineage_links[i]) let temp_url = new URL(domain) let host_domain = temp_url.host.split(".") let host_tester = host_domain[host_domain.length - 2] + host_domain[host_domain.length - 1] let compare_domain = link_to_test.host.split(".") let compare_tester = compare_domain[compare_domain.length - 2] + compare_domain[compare_domain.length - 1] if (host_tester !== compare_tester) { continue } c.push(link_to_test) } catch (error) { console.error(error) } continue } } } } return c }catch(err){ console.error(err) } }
  • The Perfect Configuration Format? Try TypeScript
    17 projects | news.ycombinator.com | 17 Nov 2021
    I'm pretty sure Deno just uses the open source TypeScript compiler: https://github.com/denoland/deno/tree/main/cli/tsc
  • The deno site is down... (details in comments)
    1 project | reddit.com/r/Deno | 16 Nov 2021
    Everything else (other sites & apps) just works, only deno.land doesn't. Came across this after clicking a link (to https://deno.land/) on the WGPU github page, but I have also tried directly entering it and using google results.
  • FOSS News International #2: November 8-145, 2021
    6 projects | reddit.com/r/fossnews | 15 Nov 2021
    Deno 1.16
  • OAuth with Cloudflare Workers on a Statically Generated Site
    7 projects | news.ycombinator.com | 15 Nov 2021
  • Deno Deploy is currently down with error 500
    1 project | news.ycombinator.com | 12 Nov 2021
  • Deno 1.16 Released
    1 project | news.ycombinator.com | 9 Nov 2021
  • Should You Learn Deno in 2022?
    1 project | dev.to | 8 Nov 2021
    The official Deno website said:
  • Never Update Anything
    4 projects | news.ycombinator.com | 6 Nov 2021
    Anyone care to comment on how [Deno](https://deno.land/) might address some of the issues shared in this thread?

What are some alternatives?

When comparing zx and deno you can also consider the following projects:

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

typescript-language-server - TypeScript & JavaScript Language Server

shelljs - :shell: Portable Unix shell commands for Node.js

esbuild - An extremely fast JavaScript and CSS bundler and minifier

nvim-lspconfig - Quickstart configurations for the Nvim LSP client

TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

tsdx - Zero-config CLI for TypeScript package development

esm.sh - A fast, global content delivery network for ES Modules.

Koa - Expressive middleware for node.js using ES2017 async functions

xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell

odbc-api - ODBC (Open Database Connectivity) bindings for Rust.

node - Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles: