figlet.js
Commander.js
figlet.js | Commander.js | |
---|---|---|
3 | 44 | |
2,491 | 26,095 | |
- | - | |
7.8 | 8.7 | |
6 months ago | 25 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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.
figlet.js
-
Building a TypeScript CLI with Node.js and Commander
Commander.js provides a lot of features that allow you to succinctly build command-line interfaces. Furthermore, the Node.js community provides libraries such as Chalk and Figlet that complement Commander.js CLIs to make them look visually appealing.
-
figlet – a program for making large letters out of ordinary text
I have a popular web based ascii text generator (patorjk.com/software/taag), it uses FIGlet driver that I wrote (https://github.com/patorjk/figlet.js/). Many of the other ones out there also use their own drivers (I've seen some written in php and python). There are also different types of ASCII text fonts out there other than FIGlet (ex: my app compiles fonts that were made in the AOL days in the Arial font - which is interesting because it's a non-monospaced font).
FIGlet is the most popular spec for these types of fonts though (it's an app and a spec). The mailing list hasn't been active in a decade, but people used to submit fonts there. It was cool to see what people made.
-
Old AMIs on your AWS Account
The oldami tool uses chalk to colorize the output and figlet for the banner.
Commander.js
-
Developing a Node CLI App in an NX monorepo
Visit the Commander.js reference.
-
Next.js Codebase Analysis <> create-next-app <> index.ts explained — Part 1.3
In the previous article, I looked at a Commander to configure and accept cli options and assign it to a variable called program.
-
[AskJS] Looking for JS course for experienced developers?
You can write a command line utility using zx or commander.js. Hit a public api, spit stuff out in the console, etc.
-
[AskJS] What is your preferred solution to share and execute Node.js scripts ?
In your index.js you can do whatever you want, even create an interactive CLI (check commander).
-
Exploring video generators in FFMPEG
There is clearly a whole load of repetition, so this should be fairly easy to build and parameterise. Essentially this will all just be string building so we won't need to use any particular libraries for most of this script. We will need a way to call ffmpeg though - and ffmpeg will need to be present too, of course. To call a CLI command we can use the package commander.
-
How to Create a Testable CLI using TypeScript?
Commander.js is an NPM package that makes it easier to build CLI tools. You can find its documentation over here
-
Creating a Node.js Command-line Tool, Linux Terminal CLI and NPM Package
You can also use npm package commander to make more complex command line tool with lot of options and sub commands.
-
Create a Node.js command-line library with NRWL NX workspace
commander - npm - Required. A library that lets you define the commands and their arguments, options, help, etc.
-
Releasing package to npm
Throughout my time writing and updating my static-site generator, I've been using npm from the very foundation I use an npm package called commander. Therefore, it is obvious that for the tool that I will be using to publish my ssg, I will do so with npm.
-
Building a TypeScript CLI with Node.js and Commander
The command line has thousands of tools, such as awk, sed, grep, and find available at your disposal that cut development time and automate tedious tasks. Creating a command line tool in Node.js isn't very complicated, thanks to a powerful library like Commander.js.
What are some alternatives?
arttime - arttime is a CLI application that blends beauty of ASCII / text art with functionality of clock / timer / pattern-based time manager in terminal ⏰
oclif - CLI for generating, building, and releasing oclif CLIs. Built by Salesforce.
figlet - Claudio's FIGlet tree
Ink - 🌈 React for interactive command-line apps
oldamis - A simple JavaScript cli for checking your AWS account for AMIs that are either >1y old or marked as deprecated.
zx - A tool for writing better scripts
args - Toolkit for building command line interfaces
Bit - A build system for development of composable software.
listr - Terminal task list
chalk - 🖍 Terminal string styling done right
gluegun - A delightful toolkit for building TypeScript-powered command-line apps.
vantage - Distributed, realtime CLI for live Node apps.