/minted

❄️ Node.js module that keeps your diff minty!

Primary LanguageJavaScriptMIT LicenseMIT

Minted ❄️

ezgif com-gif-maker (1) (1) (1)

Minted is a node module that operates in the command line. It detects console.log()s in your project files and removes them for you! This will make sure they never end up in your diff again. Click here to see it on npm 📦

Installation ⬇️

$ npm i minted --save

Usage 🪄

$ npm run mint

Demo 🤹🏼‍♂️

Example code with console.logs

// store input numbers
const prompt = require('prompt')
prompt.start()
prompt.get(['num1', 'num2'], function (err, result) {
    // console.log('Num1: ' + result.num1);
    // console.log('Num2: ' + result.num2);
    const sum = parseInt(result.num1) + parseInt(result.num2);
    if (sum) console.log(`The sum of ${result.num1} and ${result.num2} is ${sum}`);
  });

Example output from Minted

 2022-01-31 at 3 34 40 PM