Minted ❄️
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}`);
});