1.0.26 • Published 1 month ago

@visulima/cerebro v1.0.26

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

boxen, colorize, cli-table3, command-line-args and fastest-levenshtein

I would recommend reading this guide on how to make user-friendly command-line tools.

typescript-image npm-image license-image



Install

npm install @visulima/cerebro
yarn add @visulima/cerebro
pnpm add @visulima/cerebro

Usage

import Cli from "@visulima/cerebro";

// Create a CLI runtime
const cli = new Cli("cerebro");

// Your command
cli.addCommand({
    name: "main:colors",
    description: "Output colors", // This is used in the help output
    execute: ({ logger }) => {
        logger.info("Colors command");
    },
});

await cli.run();

Now you can run your CLI with node index.js and you should see the following output:

Cli Output

Supported Node.js Versions

Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.

Contributing

If you would like to help take a look at the list of issues and check our Contributing guild.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

About

Related Projects

  • oclif - The Open CLI Framework
  • gluegun - A delightful toolkit for building TypeScript-powered command-line apps.
  • meow - CLI app helper
  • commander.js - node.js command-line interfaces made easy
  • yargs - yargs the modern, pirate-themed successor to optimist.

License

The visulima package is open-sourced software licensed under the MIT

1.0.26

1 month ago

1.0.25

1 month ago

1.0.24

1 month ago

1.0.23

1 month ago

1.0.22

1 month ago

1.0.21

1 month ago

1.0.20

1 month ago

1.0.19

1 month ago

1.0.18

1 month ago

1.0.17

1 month ago

1.0.16

1 month ago

1.0.15

1 month ago

1.0.14

1 month ago

1.0.13

1 month ago

1.0.12

1 month ago

1.0.11

2 months ago

1.0.10

2 months ago

1.0.9

2 months ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago