UNPKG

atikin-bug-storyteller

Version:

CLI tool that transforms error messages into funny stories. Developed by Atikin Verse.

16 lines (11 loc) 424 B
#!/usr/bin/env node const { transformErrorToStory } = require('../lib/storyteller'); const chalk = require('chalk'); const input = process.argv.slice(2).join(' '); if (!input) { console.log(chalk.yellow('⚠️ Please provide an error message!')); process.exit(1); } const story = transformErrorToStory(input); console.log(chalk.greenBright('\n🐛 Bug Storyteller says:\n')); console.log(story);