src/index.js
function findPluginPath(command) {
  if (command && /^\w+$/.test(command)) {
    try {
      return resolve.sync('nowa-' + command, {
        paths: moduleDirs
      });
    } catch (e) {
      console.log('');
      console.log('  ' + chalk.green.bold(command) + ' command is not installed.');
      console.log('  You can try to install it by ' + chalk.blue.bold('nowa install ' + command) + '.');
      console.log('');
    }
  }
}
function findPluginPath(command) {
  if (command && /^\w+$/.test(command)) {
    try {
      return resolve.sync('nowa-' + command, {
        paths: moduleDirs
      });
    } catch (e) {
      console.log('');
      console.log('  ' + chalk.green.bold(command) + ' command is not installed.');
      console.log('  You can try to install it by ' + chalk.blue.bold('nowa install ' + command) + '.');
      console.log('');
    }
  }
}
function findPluginPath ( command ) { if ( command && / ^\w+$ / . test ( command ) ) { try { return resolve . sync ( 'nowa-' + command , { paths : moduleDirs } ) ; } catch ( e ) { console . log ( '' ) ; console . log ( '  ' + chalk . green . bold ( command ) + ' command is not installed.' ) ; console . log ( '  You can try to install it by ' + chalk . blue . bold ( 'nowa install ' + command ) + '.' ) ; console . log ( '' ) ; } } }
locate the plugin by command
locate the plugin by command