How to use the yargonaut.chalk function in yargonaut

To help you get started, we’ve selected a few yargonaut examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lando / lando / lib / art.js View on Github external
'use strict';

// Modules
const _ = require('lodash');
const chalk = require('yargonaut').chalk();
const os = require('os');

// Art data
const art = {
  error: [
    chalk.red('Lando has crashed!!!'),
    '',
    'Would you like to report it, and subsequent errors, to Lando?',
    '',
    'This data is only used by the Lando team to ensure the application runs as well as it can.',
    chalk.green('For more details check out https://docs.lando.dev/privacy/'),
  ],
  init: [
    chalk.green('NOW WE\'RE COOKING WITH FIRE!!!'),
    'Your app has been initialized!',
    '',
github lando / lando / plugins / lando-app / lib / utils.js View on Github external
'use strict';

// Modules
const _ = require('lodash');
const chalk = require('yargonaut').chalk();
const fs = require('fs-extra');
const path = require('path');
const url = require('url');

/*
 * Checks if there is already an app with the same name in an app _registry
 * object
 */
exports.appNameExists = (apps, app) => _.some(apps, a => a.name === app.name);

/*
 * Validates compose files returns legit ones
 */
exports.validateFiles = (files, root) => {
  // Handle args
  if (typeof files === 'string') {
github lando / lando / lib / node.js View on Github external
* // Get the lodash module
 * var _ = lando.node._;
 */
exports._ = require('lodash');

/**
 * Get chalk
 *
 * @since 3.0.0
 * @alias 'lando.node.chalk'
 * @example
 *
 * // Get the chalk module
 * var chalk = lando.node.chalk;
 */
exports.chalk = require('yargonaut').chalk();

/**
 * Get fs-extra
 *
 * @since 3.0.0
 * @alias 'lando.node.fs'
 * @example
 *
 * // Get the fs-extra module
 * var fs = lando.node.fs;
 */
exports.fs = require('fs-extra');

/**
 * Get object-hash
 *
github lando / lando / lib / table.js View on Github external
const _ = require('lodash');
const chalk = require('yargonaut').chalk();
const OldTable = require('cli-table');

module.exports = class Table extends OldTable {
  constructor(opts = {}) {
    const tableDefaults = {
      chars: {
        'top': '',
        'top-mid': '',
        'top-left': '',
        'top-right': '',
        'bottom': '',
        'bottom-mid': '',
        'bottom-left': '',
        'bottom-right': '',
        'left': '',
        'left-mid': '',

yargonaut

Decorate yargs content with chalk styles and figlet fonts

Apache-2.0
Latest version published 6 years ago

Package Health Score

47 / 100
Full package analysis