Socket
Socket
Sign inDemoInstall

yargonaut

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yargonaut

Decorate yargs content with chalk styles and figlet fonts


Version published
Maintainers
2
Created

What is yargonaut?

The yargonaut npm package is a utility that enhances the yargs command-line argument parser with additional features such as colorization and styling of output. It allows developers to create more visually appealing and user-friendly CLI applications.

What are yargonaut's main functionalities?

Colorization

This feature allows you to colorize the output of your CLI application. In this example, the output will be styled in blue.

const yargonaut = require('yargonaut').style('blue');
const yargs = require('yargs');

console.log(yargonaut.asYargs(yargs).argv);

Styling

This feature allows you to apply different styles to the output, such as making the text bold. In this example, the output will be bold.

const yargonaut = require('yargonaut').style('bold');
const yargs = require('yargs');

console.log(yargonaut.asYargs(yargs).argv);

Custom Themes

This feature allows you to create custom themes for your CLI application. In this example, the main text will be red, and the help text will be green.

const yargonaut = require('yargonaut').style('red').helpStyle('green');
const yargs = require('yargs');

yargs.usage('Usage: $0 <command> [options]')
  .command('hello', 'say hello', {}, (argv) => {
    console.log('Hello, world!');
  })
  .help()
  .argv;

Other packages similar to yargonaut

Keywords

FAQs

Package last updated on 30 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc