JavaScript Command-line

Open-source JavaScript projects categorized as Command-line | Edit details

Top 23 JavaScript Command-line Projects

  • GitHub repo PM2

    Node.js Production Process Manager with a built-in Load Balancer.

    Project mention: A Comprehensive Guide To Error Handling In Node.js | dev.to | 2022-01-04

    You should always run your servers using a process manager that will automatically restart them in the event of a crash. A common one is PM2, but you also have systemd or upstart on Linux, and Docker users can use its restart policy. Once this is in place, reliable service will be restored almost instantly, and you'll still have the details of the uncaught exception so that it can be investigated and corrected promptly. You can go further by running more than one process and employ a load balancer to distribute incoming requests. This will help to prevent downtime in case one of the instances is lost temporarily.

  • GitHub repo Inquirer.js

    A collection of common interactive command line user interfaces.

    Project mention: Can someone help me with this exercise: Write a program that asks the user for a word and display it on screen 10 times | reddit.com/r/javaScriptStudyGroup | 2021-12-02

    Hey there, I'd recommend you look the basics solving problems with code. These kinds of problems are the building blocks of more complex and fun problems down the road. For this, I would specifically look into using loops and the node process argv variables for taking a basic input from the cli. You could also use a package from npm, if you feel up to it, like inquirer. It's pretty straightforward and has some nice documentation.

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • GitHub repo cz-cli

    The commitizen command line utility. #BlackLivesMatter

    Project mention: How to enforce git commit messages longer than stupid shit like "abc" and "fix"? | reddit.com/r/ExperiencedDevs | 2021-12-18
  • GitHub repo terminalizer

    🦄 Record your terminal and generate animated gif images or share a web player

    Project mention: Recording the terminal to an animated GIF? | reddit.com/r/linux | 2022-01-20
  • GitHub repo http-server

    a simple zero-configuration command-line http server

    Project mention: Please help me with import/export function | reddit.com/r/learnjavascript | 2021-12-15

    You cannot use modules if you're just opening your HTML page off the file system; you need to run a local HTTP server to serve your files. I'd suggest using VSCode's Live Server extension or http-server.

  • GitHub repo spicetify-cli

    Commandline tool to customize Spotify client. Supports Windows, MacOS and Linux.

    Project mention: Finally found a way to remove duplicates from playlists and liked songs! Also a much better shuffle. | reddit.com/r/spotify | 2022-01-13

    And for anyone who deeply hates the shuffle algorithm, there is a solution for that as well. It's called Spicetify. It can be used to also theme your Spotify and add multiple features, you can find all the info in the GitHub about it. But as a tldr:

  • GitHub repo gtop

    System monitoring dashboard for terminal

    Project mention: Apps, Tools, and Gear I Use (2021 edition) | dev.to | 2021-11-11

    gtop - an alternative to activity monitor.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo prompts

    ❯ Lightweight, beautiful and user-friendly interactive prompts

  • GitHub repo enquirer

    Stylish, intuitive and user-friendly prompts, for Node.js. Used by eslint, webpack, yarn, pm2, pnpm, RedwoodJS, FactorJS, salesforce, Cypress, Google Lighthouse, Generate, tencent cloudbase, lint-staged, gluegun, hygen, hardhat, AWS Amplify, GitHub Actions Toolkit, @airbnb/nimbus, and many others! Please follow Enquirer's author: https://github.com/jonschlinkert

    Project mention: NPM – is-even, 160k weekly downloads | news.ycombinator.com | 2021-11-16

    It's insanely funny to me that these packages exist while one of his bigger projects (https://github.com/enquirer/enquirer) lists the following reason under "why use it":

    > Lightweight - Only one dependency, the excellent ansi-colors by Brian Woodward.

  • GitHub repo carbon-now-cli

    🎨 Beautiful images of your code — from right inside your terminal.

    Project mention: Send help, I have no idea wtf is going on here | reddit.com/r/badcode | 2021-12-13

    Also this

  • GitHub repo editly

    Slick, declarative command line video editing & API

    Project mention: What video editing software you use ? | reddit.com/r/Ubuntu | 2021-08-20

    It's intended to work nicely with Editly, a CLI-based https://github.com/mifi/editly

  • GitHub repo meow

    🐈 CLI app helper

    Project mention: Getting started with React Ink | dev.to | 2021-09-18

    Here the App component is being imported using a special importJSX command. Meow is a library that allows us to make interactive CLIs. Here look at the render statement. A React element is being created where the App Element is passed as the first argument (ie the JSX part of the element) and then cli.flags is an arrow of props that will be passed into the element. This is where the name prop is coming from!!!

  • GitHub repo jquery.terminal

    jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands

    Project mention: See how DMARC, SPF, and DKIM work interactively | news.ycombinator.com | 2022-01-10

    If you don't mind using jQuery Based Terminal library. You can do almost everything (except I don't know how to create floating domain animation) with https://terminal.jcubic.pl/. You can think about jQuery Termial as a framework. You don't need ReactJS or Angular for this.

    The library supports typing animation and changing colors. You can easily create the same interactive console.

    If you're interested I can create a demo for this.

  • GitHub repo nodejs-cli-apps-best-practices

    The largest Node.js CLI Apps best practices list ✨

    Project mention: What are your preferred guides to write cool command line app? | reddit.com/r/commandline | 2021-10-28

    Mine are: an article - https://blog.developer.atlassian.com/10-design-principles-for-delightful-clis/ node cli apps best practices - https://github.com/lirantal/nodejs-cli-apps-best-practices

  • GitHub repo fast-xml-parser

    Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.

    Project mention: Submit form display data from outsource xml | reddit.com/r/react | 2021-06-19
  • GitHub repo sade

    Smooth (CLI) Operator 🎶

    Project mention: So far one of the best tools to build CLI interfaces is Oclif by Heroku. What are you all using? | reddit.com/r/node | 2021-11-03

    For Node? sade

  • GitHub repo liftoff

    Launch your command line tool with ease.

  • GitHub repo Node.CLI-Progress

    :hourglass: easy to use progress-bar for command-line/terminal applications

    Project mention: Build a Command-Line Pomodoro Timer in Node.js | dev.to | 2021-02-15

    The display is simply the multi-progress bar from the CLI-progress library. This is way better than writing to the console yourself. Here's the block I'm on right now -

  • GitHub repo nve

    Run any command on specific Node.js versions

  • GitHub repo jwt-cracker

    Simple HS256 JWT token brute force cracker

    Project mention: Awesome Penetration Testing | dev.to | 2021-10-06

    JWT Cracker - Simple HS256 JSON Web Token (JWT) token brute force cracker.

  • GitHub repo figures

    Unicode symbols with fallbacks for older terminals

  • GitHub repo mri

    Quickly scan for CLI flags and arguments

    Project mention: advanced-cli | reddit.com/r/node | 2021-10-23

    is very fast execution, more than mri

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-01-20.

JavaScript Command-line related posts

Index

What are some of the best open-source Command-line projects in JavaScript? This list will help you:

Project Stars
1 PM2 36,318
2 Inquirer.js 15,518
3 cz-cli 12,848
4 terminalizer 12,257
5 http-server 11,414
6 spicetify-cli 9,578
7 gtop 8,906
8 prompts 7,047
9 enquirer 6,334
10 carbon-now-cli 5,174
11 editly 3,206
12 meow 2,864
13 jquery.terminal 2,635
14 nodejs-cli-apps-best-practices 2,167
15 fast-xml-parser 1,356
16 sade 888
17 liftoff 794
18 Node.CLI-Progress 602
19 nve 543
20 jwt-cracker 508
21 figures 490
22 terminal-link 470
23 mri 454
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
OPS - Build and Run Open Source Unikernels
Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
github.com/nanovms