Basho.js – Use JavaScript in your shell scripts
Basho.js – Use JavaScript in your shell scripts launched on July 25, 2020 with 5 votes, #1,626 of 4,305 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 6 years on.
What it does
Bashō lets you to write complex shell tasks using plain JavaScript. It mixes well with shell commands and scripts; so you can mix them with JavaScript in the same line. You can use the npx command to try basho without installing. Bashō evaluates a pipeline of instructions left to right. Instructions can be JavaScript code, reference to an external JS file, or a shell command. What makes basho interesting is Lazy Evaluation , more on this later. To evaluate a JavaScript expression, use the 'js' option -j. Let’s start with a single item in the pipeline, a JavaScript constant. The option -p avoids printing the final result. This is rarely used, but it is sometimes useful along with the error()…from bashojs.org
Does a similar job
all alternatives →- ACA complete Bash parser in JavaScript transpiled from Go2018 · npmjs.com · ▲89
Redo – Command line utility for quickly creating shell functions2022 · github.com · ▲124Redo is the ultimate tool to create reusable functions from your history in an interactive way - barthr/redo

Jb / json.bash – Command-line tool (and bash library) that creates JSON2024 · github.com · ▲183jb is a UNIX tool that creates JSON, for shell scripts or interactive use. Its "one thing" is to get shell-native data (environment variables, files, program output) to somewhere else, using JSON encapsulate it robustly. I wrote this because I wanted a robust and ergonomic way to create ad-hoc JSON data from the command line and scripts. I wanted errors to not pass silently, not coerce data types, not put secrets into argv. I wanted to leverage shell features/patterns like process substitution, environment variables, reading/streaming from files and null-terminated data. If you…

Run unknown shell script with a line-by-line confirmation prompt2021 · gist.github.com · ▲158Run a shell script with bash, line-by-line, prompted on each command. Useful for running unknown scripts or debugging. Not a secure substitute for understanding a script beforehand. - LICENSE
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 2d ago · permit.petercai.com
- IV
Life & fun · 14d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 15d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 9d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 13d ago · carrierexplode.com

Life & fun · 23d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, July 2020
the whole month →

Using only a Raspberry Pi and an $11 video capture dongle, you can create your own KVM over IP device, allowing you to send keyboard input to a remote computer and capture its display.
Life & fun · 2020 · mtlynch.io

Generate an animated 3D image from a book cover and export to HTML/CSS to embed on your website.
Life & fun · 2020 · 3d-book-css.netlify.app

- PA
Life & fun · 2020 · primo.af
