shelljs VS node

Compare shelljs vs node and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
shelljs node
27 921
14,134 103,634
0.3% 1.6%
6.4 9.9
2 months ago 4 days ago
JavaScript JavaScript
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
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.

shelljs

Posts with mentions or reviews of shelljs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-20.
  • The Bun Shell
    17 projects | news.ycombinator.com | 20 Jan 2024
    When I need shell-like utilities from my JS scripts I've previously used shelljs [0]. It's neat that Bun is adding more built-in utilities though.

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

  • Auto commit with LaunchAgents & JavaScript
    1 project | dev.to | 2 Feb 2023
    Now we can open this new project and we're going to install one package, shelljs Shelljs is a great Command Line Utility for interacting with the command line in JavaScript.
  • zx 7.0.0 release
    2 projects | /r/javascript | 14 Jun 2022
    Feels like this library is trying to solve a problem solved long ago by shelljs
  • Guide: Hush Shell-Scripting Language
    23 projects | news.ycombinator.com | 25 Apr 2022
    The purpose of OP's project kind of reminded me of shell.js (shx) [1] which is a nodejs library that wraps all kinds of common UNIX commands to their own synchronously executed methods.

    I guess that most shell projects start off as wanting to be a cross-platform solution to other operating systems, but somewhere in between either escalate to being their own programming language (like all the powershell revamps) or trying to reinvent the backwards-compatibility approach and/or POSIX standards (e.g. oil shell).

    What I miss among all these new shell projects is a common standardization effort like sh/dash/bash/etc did back in the days. Without creating something like POSIX that also works on Windows and MacOS, all these shell efforts remain being only toy projects of developers without the possibility that they could actually replace the native shells of Linux distributions.

    Most projects in the node.js area I've seen migrate their build scripts at some point to node.js, because maintaining packages and runtimes on Windows is a major shitshow. node.js has the benefit (compared to other environments) that it's a single .exe that you have to copy somewhere and then you're set to go.

    When I compare that with python, for example, it is super hard to integrate. All the anaconda- or python-based bundles for ML engineers are pretty messed up environments on Windows; and nobody actually knows where their site-packages/libraries are really coming from and how to even update them correctly with upstream.

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

  • Change working directory in my current shell context when running Node script
    1 project | /r/codehunter | 29 Mar 2022
    `` When I then run this file with./bin/nodefile`, it exits, but the working directory of the current shell context has not changed. I have also tried shelljs, but that does not work either.
  • Ask HN: Let's Build CheckStyle for Bash?
    15 projects | news.ycombinator.com | 20 Feb 2022
    Oh people have tried - here are a few https://stackoverflow.com/questions/10239235/are-there-any-l...

    I vaguely remember quite liking bish when I saw it years ago https://github.com/tdenniston/bish but it looks like no commits in 6 years.

    This shelljs thing looks more promising, but really tedious to use https://github.com/shelljs/shelljs - shell.rm('-rf', 'out/Release'); I'd rather suffer proper bash than have to do that sort of thing.

    Nothing seems to have really caught on so far. Bash is easy to learn and hack on, and before you know it, that simple install.sh that started out moving a few files around is 5000 lines, unmaintainable, and critical to bootstrapping your software :)

  • Release of google/zx 5.0.0
    2 projects | /r/javascript | 9 Feb 2022
    I personally prefer shelljs for stuff like this. zx seems pretty high on the "insane syntactic sugar" train.
  • How to build a CLI using NodeJS 💻
    10 projects | dev.to | 4 Jan 2022
    As we are creating starter files, let's use ShellJS to run commands like git clone, mkdir...
  • shelljs VS bargs - a user suggested alternative
    2 projects | 7 Dec 2021
  • 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...

node

Posts with mentions or reviews of node. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-23.
  • Google Authentication in Nodejs using Passport and Google Oauth
    2 projects | dev.to | 23 Apr 2024
    You should have Nodejs installed on your laptop and if not, check the Node.js official website, and download/ install the latest and stable release.
  • Getting an error when using @ValidateNested decorator in NestJs
    1 project | dev.to | 22 Apr 2024
    [Nest] 60017 - 04/22/2024, 1:07:48 PM ERROR Error [ERR_INTERNAL_ASSERTION]: Error: BSONError: Cannot create Buffer from undefined at Object.toLocalBufferType at Object.toHex at ObjectId.toHexString at ObjectId.inspect at ObjectId.[nodejs.util.inspect.custom] at formatValue (node:internal/util/inspect:782:19) at formatProperty (node:internal/util/inspect:1819:11) at formatArray (node:internal/util/inspect:1645:17) at formatRaw (node:internal/util/inspect:1027:14) at formatValue (node:internal/util/inspect:817:10) This is caused by either a bug in Node.js or incorrect usage of Node.js internals. Please open an issue with this stack trace at https://github.com/nodejs/node/issues
  • Node.js Task Runner
    1 project | news.ycombinator.com | 20 Apr 2024
  • Avoiding lock-in for your image pipeline with Nuxt Image and Netlify Image CDN
    2 projects | dev.to | 19 Apr 2024
    Node.js
  • The Object model in EmberJS.
    1 project | dev.to | 18 Apr 2024
    To install and run Ember.js, you'll need to follow these steps: Install Node.js and npm (Node Package Manager) on your computer. You can download the latest version of Node.js from the official website. Once Node.js and npm are installed, open a terminal window and run the following command to install the Ember.js command line interface (CLI):
  • URL shortening using CLI
    3 projects | dev.to | 15 Apr 2024
    NodeJS - Link
  • Next.js vs Node.js: A Modern Contrast
    5 projects | dev.to | 12 Apr 2024
    To get involved in the Node.js developer community, you can join community discussions or begin with learning if you’re new. The community discussion houses a GitHub list of issues related to Node.js' core features. If you want to chat in real time about Node.js development, there are Slack groups, and you can still connect with IRC clients or web clients when using the browser. Node.js has a calendar for public meetings.
  • Build a Discord Bot with Discord.js V14: A Step-by-Step Guide
    2 projects | dev.to | 12 Apr 2024
    Download the latest version from the Node.js website, open the package installer, and follow the instructions Use a package manager like Homebrew with the command brew install node On Linux, you can consult this page to determine how you should install Node.
  • Node.js 20.6 adds built-in support for .env files
    3 projects | dev.to | 12 Apr 2024
    As with all experimental things, a few things are missing. Some of these might lead to people using dotenv until support for these gets added. I will mention them here and let you see if they are dealbreakers. You can also follow the GitHub issue to track missing feature support.
  • Netlify integrations can now inject serverless functions to enhance any site. Here’s how
    2 projects | dev.to | 11 Apr 2024
    Node

What are some alternatives?

When comparing shelljs and node you can also consider the following projects:

zx - A tool for writing better scripts

Svelte - Cybernetically enhanced web apps

Inquirer.js - A collection of common interactive command line user interfaces.

widevine-l3-decryptor - A Chrome extension that demonstrates bypassing Widevine L3 DRM

cross-env

source-map-resolve - [DEPRECATED] Resolve the source map and/or sources for a generated file.

nvm - Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

sharp-libvips - Packaging scripts to prebuild libvips and its dependencies - you're probably looking for https://github.com/lovell/sharp

chalk - 🖍 Terminal string styling done right

nodejs.dev - A redesign of Nodejs.org built using Gatsby.js with React.js, TypeScript, and Remark.

sudo-block - Block users from running your app with root permissions

hashlips_art_engine - HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.