UNPKG

gitignore-synthesizer

Version:

Generate smart .gitignore files based on your project's actual contents

20 lines (14 loc) 383 B
import chalk from 'chalk'; let verbose = false; export function setVerbose(val) { verbose = val; } export function log(...args) { if (verbose) console.log(chalk.blue('[INFO]'), ...args); } export function warn(...args) { console.warn(chalk.yellow('[WARN]'), ...args); } export function error(...args) { console.error(chalk.red('[ERROR]'), ...args); }