npm-ai-console
Version:
A funny AI-powered console logger with sarcastic, hype, and confused modes
68 lines (44 loc) • 1.71 kB
Markdown
# npm-ai-console 🤖💬
**The sassiest AI-powered console logger you never knew you needed.**
## Overview
Bored of boring console logs? `npm-ai-console` adds a splash of personality to your terminal by dropping hilarious AI-generated comments right after your messages.
Choose your vibe — sarcastic snark, hype hype hooray, or confused AI trying to make sense of your madness.
It’s like having a digital buddy roasting or cheering you while you debug!
## Features
- Three moods to match your coding feels:
- `sarcastic` — Because sometimes your logs deserve a savage clapback.
- `hype` — Your personal cheerleader, minus the pom-poms.
- `confused` — AI pretending it understands, but it really doesn’t.
- Occasional meme bombs to keep things spicy 🌶️.
- Zero dependencies, lightweight enough to fit in your pocket.
- Two easy functions: `setMode` and `aiLog` — simplicity is king.
## Installation
```bash
npm install npm-ai-console
```
```js
//Usage
const { aiLog, setMode } = require('npm-ai-console');
// Set mood to sarcastic
setMode('sarcastic');
aiLog('Server started');
// Switch to hype mode
setMode('hype');
aiLog('Build succeeded!');
// Switch to confused mode
setMode('confused');
aiLog('User login failed');
```
## API
### `setMode(mode: string): void`
Sets the AI commentary mood. Valid values:
- `'sarcastic'`
- `'hype'`
- `'confused'`
Logs a warning if an invalid mode is passed.
### `aiLog(...args: any[]): void`
Logs the given arguments to the console and appends a humorous AI comment based on the current mood. Occasionally, it logs a random meme or quote.