How to use the figlet function in figlet

To help you get started, weโ€™ve selected a few figlet 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 kitze / gtb / src / index.js View on Github external
{
    name: 'task',
    depends: ['name']
  },
  {
    name: '.'
  },
  {
    name: 'production',
    depends: ['name']
  }
];

/* ====== Initialize ====== */

figlet('GTB', function (err, data) {
  console.log(data.toString());
  gtbConfig = readGtbConfig();
  initialize();
});

function addCliCommands() {
  program
    .option('-n, --name [projectName]', 'option: Run project')
    .option('-t, --task [taskName]', 'option: Run specific gulp task on a project [default]', 'default')
    .option('-p, --production', 'option: Set production mode')
    .option('list', 'command: List all the projects')
    .option('add [add]', 'command: Adds a new project to gtb')
    .option('deploy [deploy]', 'command: Deploys project to surge.sh')
    .option('delete [delete]', 'command: Deletes project')
    .option('.')
    .parse(process.argv);
github gxchain / gxb-box / lib / index.js View on Github external
return;
        }
        serverStarted = true;
        let port = parseInt(config.common.port || '3000');
        app.set('port', port);
        let server = http.createServer(app);
        server.listen(port);
        server.on('error', onError);
        server.on('listening', () => {
            var addr = server.address();
            var bind = typeof addr === 'string'
                ? 'pipe ' + addr
                : 'port ' + addr.port;
            console.log('Listening on ' + bind);
        });
        figlet('GXB-BOX', 'ANSI Shadow', function (err, text) {
            if (err) {
                console.error(err);
            }
            console.log(colors.rainbow('\n=*=*=*=*=*=*=*=*=*==*=*= ๅ…ฌไฟกๅฎๆ•ฐๆฎไบคๆ˜“ๅฎขๆˆท็ซฏๅทฒๅฏๅŠจ =*=*=*==*=*=*=*=*=*=*=*=\n'));
            console.log(colors.cyan(`${(text || '').split('\n').map(function (line) {
                return `\t${line}`;
            }).join('\n')}`));
            console.log(colors.rainbow('=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=**=*=*=*=*=*=*==*=*=*=\n'));
        });
    };
github MattMcFarland / reactathon / scripts / server.js View on Github external
function startWatch() {
  figlet('Reactathon', function (err, data) {
    if (err) {
      console.log('Something went wrong...');
      console.dir(err);
      return;
    }
    process.stdout.write(
      CLEARSCREEN + yellow(data) + '\n' +
      yellow(invert('Fire!')
      )
    );
    setTimeout(() => {
      bs.init({ proxy });
      console.log(green(invert('Watching...')));
    }, 1000)
  });
github rogeruiz / scuttle / gulpfile.babel.js View on Github external
const logName = ( task, done ) => {
  figlet( pkg.name, {
    font: `Isometric${ Math.floor( Math.random() * ( 4 - 1 + 1 ) ) + 1 }`,
  }, ( error, data ) => {
    if ( ! error ) {
      data.split( '\n' )
        .forEach( ( line ) => {
          logData( task, line );
        } );
      logData( task, '' );
    }
    if ( 'function' === typeof done ) {
      done();
    }
  } );
};
github Wildhoney / Readlint / bin / index.js View on Github external
async function main() {
    const filename = await findUp('README.md');
    const report = await runTest(filename);
    const isValid = R.isEmpty(report);

    figlet(capitalise(pkg.name), { font: 'univers' }, (_, data) => {
        data && console.log(chalk.gray(data));
        console.log(
            chalk.gray('Version:'.padStart(data ? 70 : 0)),
            pkg.version,
            '\n\n'
        );

        report.forEach(({ type, line, column, message }) => {
            console.log(
                theme.status(theme.statusType.failure)(` ${type} `),
                theme.separator(':'),
                theme.label('Line'),
                theme.value(line),
                theme.separator('/'),
                theme.label('Column'),
                theme.value(column),
github ShailenNaidoo / hydrogen / src / generator / build.ts View on Github external
    console.log(chalk.red(await new Promise((resolve): void => figlet('Hydrogen', (e, data): void => resolve(data)))));
  }
github Nirongxu / vue-xuAdmin / dist / static / fit.config.js View on Github external
export default function fig () {
  figlet('JDC O2 Team', function (err, data) {
    if (err) {
      console.log('Something went wrong...')
      console.dir(err)
      return
    }
    debugger
    console.log(data)
  })
}
github Nirongxu / nodePlatform-eggjs / vue-xuAdmin / dist / static / fit.config.js View on Github external
export default function fig () {
  figlet('JDC O2 Team', function (err, data) {
    if (err) {
      console.log('Something went wrong...')
      console.dir(err)
      return
    }
    console.log(data)
  })
}

figlet

Creates ASCII Art from text. A full implementation of the FIGfont spec.

MIT
Latest version published 9 months ago

Package Health Score

79 / 100
Full package analysis