Cliffy
oclif
Our great sponsors
Cliffy | oclif | |
---|---|---|
1 | 34 | |
347 | 8,757 | |
- | 0.8% | |
0.0 | 9.4 | |
almost 2 years ago | 7 days ago | |
TypeScript | TypeScript | |
ISC 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.
Cliffy
-
Is Node.js a good way to implement a CLI app with persistence?
Due to Node's asynchronous behavior, it makes Node great for long-running processes that make a lot of HTTP requests, database calls, and other async ops, like a web server or a REST API. However, if I am making a CLI tool for pretty much personal use only, with very minimal async operations, then blocking the event loop with a synchronous function that will resolve almost immediately will make no difference perceivable to a human brain or have any speed benefits that someone can actually observe (think `fs.readFileSync` or `require('dotenv') of 10 line config file, or a quick embedded db (sqlite) query with only ~100 records. I'm wondering what the best way to implement the database part of the app synchronous. I can read/write to JSON files but it would be tricky because the data is relational, and some complex joins and other data wrangling operations are required (complex to perform in JS but are easy to implement in a SQL statement). It's not important what the operations are, that's not the point of this post. This is mostly a personal project of interest: making this CLI tool completely avoiding any async operations/using no promises. I would like to use node tho, as I said this is just out of interest and I also want to experiment with several CLI libraries such as Ink or Cliffy.
oclif
-
Gnarly Learnings from March 2023
oClif.io
-
How do I export/distribute a Node.js command line application?
Check out https://oclif.io/
-
From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience
Interesting. TIL about the Open CLI framework that they all seem to be moving to: https://oclif.io/
-
Making command line commands with javascript
https://oclif.io is a tool that helps you build command line tools with node. You can use it to help you create an executable for Linux, max, or windows that you can invoke from the command line.
-
Spidergram is a collection of tools my company Autogram has built or enabled over the past several years to support our work to automate content inventories for large websites: it's part web crawler, part domain model, and part mad science. We released the first public beta today.
Oclif to quickly click together CLI tools for kicking off and monitoring crawls, generating reports, etc.
-
One year at Ably as a Developer Advocate
During the second Ably Innovation Days, I started working on specifications for an Ably CLI. After the first day Phil and I started with a prototype based on oclif. We managed to create a working prototype in a day that lists Ably apps, and creates a new Ably app. This project is still Work In Progress. Once the CLI is in a releasable state, I'll create some content around this.
-
Building a TypeScript CLI with Node.js and Commander
A command-line interface, often referred to as a CLI, is a program that allows users to type instructions and interact with a script that processes the input and produces an output. Node.js has a lot of packages that allows you to build CLIs, like args, minimist, and oclif.
-
How do I create a bot that crawls reddit and gives me insights about certain topics/keywords? (Preferably can be written in JS)
Now, to call the scripts I've made I use oclif to easily include it in a cronjob.
-
Managing application cache with react-query, and code generation.
If we look at what this package is based on, we will see that we are using oclif - this is a node.js-based tool for creating a CLI.
-
Can I use Node for general scripting? (Like python)
I’d recommend using OCLIF (https://oclif.io/). It makes building super fancy CLIs a breeze
What are some alternatives?
Commander.js - node.js command-line interfaces made easy
Ink - 🌈 React for interactive command-line apps
yargs - yargs the modern, pirate-themed successor to optimist.
pkg - Package your Node.js project into an executable
zx - A tool for writing better scripts
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
Bit - A build system for development of composable software.
listr - Terminal task list
tsdx - Zero-config CLI for TypeScript package development
terminal-image - Display images in the terminal