How to use the envinfo.print function in envinfo

To help you get started, we’ve selected a few envinfo 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 OffGridNetworks / fuse-box-create-react-app / packages / fuse-box-create-react-app / createReactApp.js View on Github external
console.log();
    console.log(
      `    If you have any problems, do not hesitate to file an issue:`
    );
    console.log(
      `      ${chalk.cyan(
        'https://github.com/offgridnetworks/fuse-box-create-react-app/issues/new'
      )}`
    );
    console.log();
  })
  .parse(process.argv);

if (typeof projectName === 'undefined') {
  if (program.info) {
    envinfo.print({
      packages: ['react', 'react-dom', 'fuse-box-react-scripts'],
      noNativeIDE: true,
      duplicates: true,
    });
    process.exit(0);
  }
  console.error('Please specify the project directory:');
  console.log(
    `  ${chalk.cyan(program.name())} ${chalk.green('')}`
  );
  console.log();
  console.log('For example:');
  console.log(`  ${chalk.cyan(program.name())} ${chalk.green('my-react-app')}`);
  console.log();
  console.log(
    `Run ${chalk.cyan(`${program.name()} --help`)} to see all options.`
github humanmade / react-wp-scripts / packages / create-react-wp-project / index.js View on Github external
console.log();
			console.log(
				`    If you have any problems, do not hesitate to file an issue:`
			);
			console.log(
				`      ${chalk.cyan(
					'https://github.com/humanmade/react-wp-scripts/issues/new'
				)}`
			);
			console.log();
		} )
		.parse( process.argv );

	if ( typeof projectName === 'undefined' ) {
		if (program.info) {
			envinfo.print( {
				packages:    ['react', 'react-dom', 'react-wp-scripts'],
				noNativeIDE: true,
				duplicates:  true,
			} );
			process.exit( 0 );
		}
		console.error( 'Please specify the project directory:' );
		console.log(
			`  ${chalk.cyan(program.name())} ${chalk.green('')}`
		);
		console.log();
		console.log( 'For example:' );
		console.log( `  ${chalk.cyan(program.name())} ${chalk.green('my-react-app')}` );
		console.log();
		console.log(
			`Run ${chalk.cyan(`${program.name()} --help`)} to see all options.`

envinfo

Info about your dev environment for debugging purposes

MIT
Latest version published 7 days ago

Package Health Score

86 / 100
Full package analysis

Popular envinfo functions