How to use the better-console.error function in better-console

To help you get started, we’ve selected a few better-console 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 lancetw / react-isomorphic-bundle / styles / semantic / tasks / install.js View on Github external
}))
        .pipe(gulp.dest(manager.root))
      ;

      console.info('Update complete! Run "\x1b[92mgulp build\x1b[0m" to rebuild dist/ files.');

      return;
    }
    else {
      console.log('Current version of Semantic UI already installed');
      return;
    }

  }
  else {
    console.error('Cannot locate files to update at path: ', updatePaths.definition);
    console.log('Running installer');
  }

}

/*--------------
 Determine Root
---------------*/

// PM that supports Build Tools (NPM Only Now)
if(manager.name == 'NPM') {
  rootQuestions[0].message = rootQuestions[0].message
    .replace('{packageMessage}', 'We detected you are using \x1b[92m' + manager.name + '\x1b[0m. Nice! ')
    .replace('{root}', manager.root)
  ;
  // set default path to detected PM root
github skydiver / nextjs-semantic / .semantic / tasks / install.js View on Github external
}))
          .pipe(gulp.dest(manager.root))
        ;

        console.info('Update complete! Run "\x1b[92mgulp build\x1b[0m" to rebuild dist/ files.');

        callback();
        return;
      } else {
        console.log('Current version of Semantic UI already installed');
        callback();
        return;
      }

    } else {
      console.error('Cannot locate files to update at path: ', updatePaths.definition);
      console.log('Running installer');
    }

  }

  /*--------------
   Determine Root
  ---------------*/

// PM that supports Build Tools (NPM Only Now)
  if (manager.name === 'NPM') {
    rootQuestions[0].message = rootQuestions[0].message
      .replace('{packageMessage}', 'We detected you are using ' + manager.name + ' Nice!')
      .replace('{root}', manager.root)
    ;
    // set default path to detected PM root
github inkdropapp / docs / semantic / tasks / install.js View on Github external
}))
        .pipe(gulp.dest(manager.root))
      ;

      console.info('Update complete! Run "\x1b[92mgulp build\x1b[0m" to rebuild dist/ files.');

      return;
    }
    else {
      console.log('Current version of Semantic UI already installed');
      return;
    }

  }
  else {
    console.error('Cannot locate files to update at path: ', updatePaths.definition);
    console.log('Running installer');
  }

}

/*--------------
 Determine Root
---------------*/

// PM that supports Build Tools (NPM Only Now)
if(manager.name == 'NPM') {
  rootQuestions[0].message = rootQuestions[0].message
    .replace('{packageMessage}', 'We detected you are using ' + manager.name + ' Nice!')
    .replace('{root}', manager.root)
  ;
  // set default path to detected PM root
github synzen / Discord.RSS / web / client / src / semantic / tasks / install.js View on Github external
}))
        .pipe(gulp.dest(manager.root))
      ;

      console.info('Update complete! Run "\x1b[92mgulp build\x1b[0m" to rebuild dist/ files.');

      return;
    }
    else {
      console.log('Current version of Semantic UI already installed');
      return;
    }

  }
  else {
    console.error('Cannot locate files to update at path: ', updatePaths.definition);
    console.log('Running installer');
  }

}

/*--------------
 Determine Root
---------------*/

// PM that supports Build Tools (NPM Only Now)
if(manager.name == 'NPM') {
  rootQuestions[0].message = rootQuestions[0].message
    .replace('{packageMessage}', 'We detected you are using ' + manager.name + ' Nice!')
    .replace('{root}', manager.root)
  ;
  // set default path to detected PM root
github fomantic / Fomantic-UI / tasks / install.js View on Github external
}))
          .pipe(gulp.dest(manager.root))
        ;

        console.info('Update complete! Run "\x1b[92mgulp build\x1b[0m" to rebuild dist/ files.');

        callback();
        return;
      } else {
        console.log('Current version of Semantic UI already installed');
        callback();
        return;
      }

    } else {
      console.error('Cannot locate files to update at path: ', updatePaths.definition);
      console.log('Running installer');
    }

  }

  /*--------------
   Determine Root
  ---------------*/

// PM that supports Build Tools (NPM Only Now)
  if (manager.name === 'NPM') {
    rootQuestions[0].message = rootQuestions[0].message
      .replace('{packageMessage}', 'We detected you are using ' + manager.name + ' Nice!')
      .replace('{root}', manager.root)
    ;
    // set default path to detected PM root

better-console

A better console for Node.js

BSD
Latest version published 7 years ago

Package Health Score

44 / 100
Full package analysis