1.0.5 โ€ข Published 2 years ago

minted v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

Example output from Minted

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago