Skip to content

Node JS based CLI framework to build modern Command line applications (in Beta )

License

Notifications You must be signed in to change notification settings

lokesh-coder/lesyjs

Repository files navigation

The Lounge


> 𝙱𝚞𝚒𝚕𝚍 𝚖𝚘𝚍𝚎𝚛𝚗 𝚌𝚘𝚖𝚖𝚊𝚗𝚍-𝚕𝚒𝚗𝚎 𝚊𝚙𝚙𝚜_

WebsiteDocumentationPlayground


Features

  • Language     - Javascript and Typescript with @types
  • Flexibility     - Able to change complete flow with middlewares
  • Boilerplate    - Write less code. whether it's a dead simple project or complex one
  • Extensions    - Add cool functionalities with plugins
  • Platform      - Write once and run in CLI or web UI. Desktop interface is coming soon
  • Performance  - It is faster than existing tools. Benchmarks inside
  • Testing       - Dedicated testing setup for unit test and integration test
  • Lot more      - Features, sub-commands, boilerplate generator...

Installation

Scaffold new project directly using npx command

> npx lesy new my-cli

Or, you can install lesy cli globally and generate a new project

> npm i -g lesy
> lesy new my-cli



asciicast

Also you can create your own project setup and run lesy. Learn more.

Basic Example

#!/usr/bin/env node

const lesy = require("@lesy/compiler");
const commands = [{ name: "hello", run: () => console.log("hello world") }];

lesy({ commands }).parse();
./cmd hello

It is just a tiny bit of lesy. There are lot of other cool stuffs like, advance commands, middlewares, features, configs, and plugins. Learn more

Plugins

  • UI Pilot
    Run commands in Web UI. Supports input, console, workspace and more...

  • Store
    Key-value storage in the system

  • Config reader
    Setup config files like myapp.config.json, myapp.config.yml, myapp.config.js

  • Scaffold generator
    Generate projects with handlebars templating

  • Prompt
    Wrapper around inquirer plugin for prompts and questions

  • Help
    Automatically generate beautiful help with sub commands support. Highly customizable

  • Arg validator
    Prompt if required args are not supplied

    License

    MIT

About

Node JS based CLI framework to build modern Command line applications (in Beta )

Topics

Resources

License

Stars

Watchers

Forks