Skip to content

Commit

Permalink
πŸ“– DOC: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadawais committed Mar 20, 2020
1 parent 5ed21f7 commit c8e721e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
/* NODE CLI HANDLE ERROR */

/**
* Node Cli Handle Error.
*/
const ora = require("ora");
const chalk = require("chalk");
const ora = require('ora');
const chalk = require('chalk');
const red = chalk.bold.red;
const yellow = chalk.bold.yellow;
const spinner = ora({ text: "" });
const spinner = ora({ text: '' });

module.exports = (
heading = `ERROR: `,
err,
displayError = true,
exit = true
) => {
module.exports = (heading = `ERROR: `, err, displayError = true, exit = true) => {
if (err) {
console.log();
if (displayError) {
Expand Down

0 comments on commit c8e721e

Please sign in to comment.