minted
v1.0.5
Published
Detects console logs and removes them so they don't end up in your diff!
Downloads
10
Maintainers
Readme
Minted! - console.log()
Removal 🚮
Minted is a command line tool that detects console logs 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}`);
});