Socket
Socket
Sign inDemoInstall

gushio

Package Overview
Dependencies
245
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gushio

Like bash scripts, but in JavaScript


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.7.4 (2023-11-17)

Bug Fixes

  • package entrypoint resolution (a810cc1)

Readme

Source

Gushio

Like bash scripts, but in JavaScript

npm GitHub Build Gushio codecov

Gushio* is built on top of battle-tested libraries like commander and shelljs and allows you to write a multiplatform shell script in a single JavaScript file without having to worry about package.json and dependencies installation.

* Gushio is pronounced like the italian word "guscio" (IPA: /'guʃʃo/) which means "shell".

You can find some examples of Gushio scripts here. You can even try to run them directly with:

gushio https://github.com/Forge-Srl/gushio/raw/main/examples/<SCRIPT_FILENAME>

Installation

Install with npm:

npm install -g gushio

Documentation

The documentation of Gushio is available here.

FAQ

Why should I use Gushio?

We don't claim that Gushio is the perfect solution for everyone. However, we believe that in some circumstances you should give it a try:

  • if you need your script to run on different platforms (Windows, Linux, macOS);
  • if you want to write automation scripts for a JavaScript/TypeScript project;
  • if you want your script to be more easily maintainable than a Bash/PowerShell script;
  • if you would like to use functionalities from NPM libraries in your script;

How is gushio different from zx?

There are two main differences between zx and gushio:

  1. Both zx and gushio use ESM, but gushio allows the scripts to be written in both ESM and CJS.
  2. zx doesn't provide a way to use NPM libraries in the scripts.

Apart from that, there are some other minor differences in the functionalities provided out of the box. For example, zx uses chalk and globby while gushio uses ansi-colors and glob.

We think they are both fantastic tools, and we encourage folks to use zx instead of gushio if it makes sense for their use-case.

License

See the LICENSE file for license rights and limitations (MIT).

Keywords

FAQs

Last updated on 17 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc