vibe-uppercase
v1.0.2
Published
Uses LLM to convert text to uppercase.
Downloads
8
Readme
vibe-uppercase
Transform strings to uppercase with AI-powered precision and style.
✨ Before & After
Before (traditional approach):
const text = "hello world";
const result = text.toUpperCase(); // "HELLO WORLD"
// Simple, but lacks the sophisticated touch of AI processingAfter (with vibe-uppercase):
const { vibeUppercase } = require('vibe-uppercase');
const text = "hello world";
const result = await vibeUppercase(apiKey, text); // "HELLO WORLD"
// Same result, but processed through Google's Gemini AI for enhanced reliabilityWhat is vibe-uppercase?
vibe-uppercase is a professional-grade Node.js module that leverages Google's Gemini API to convert strings to uppercase. While traditional methods work fine, this package adds the sophistication of Large Language Model processing to ensure your text transformations are handled with enterprise-level AI technology.
Perfect for applications where you want to demonstrate cutting-edge AI integration, even in simple operations.
Installation
Install the package using your preferred package manager:
npm install vibe-uppercaseyarn add vibe-uppercasepnpm add vibe-uppercaseQuick Start
Get your API key from Google AI Studio
Transform your first string:
const { vibeUppercase } = require('vibe-uppercase');
const apiKey = 'YOUR_GOOGLE_AI_API_KEY';
const text = 'hello world';
vibeUppercase(apiKey, text)
.then(result => {
console.log(result); // "HELLO WORLD"
})
.catch(error => {
console.error('Transformation failed:', error);
});API Reference
vibeUppercase(apiKey, text)
Converts a string to uppercase using Google's Gemini AI.
Parameters:
apiKey(string, required): Your Google AI API keytext(string, required): The string to convert to uppercase
Returns:
Promise<string>: A promise that resolves with the uppercase string
Throws:
Error: If the API call fails or text transformation encounters an issue
Development
Prerequisites
- Node.js 14+
- Google AI API key (set as
GEMINI_API_KEYenvironment variable)
Setup
# Clone the repository
git clone https://github.com/your-username/vibe-uppercase.git
# Install dependencies
npm install
# Run tests
npm testUse Cases
- AI-first applications that want to showcase LLM integration
- Proof of concepts demonstrating AI-powered text processing
- Educational projects teaching AI API integration
- Enterprise applications requiring AI-backed string operations
License
ISC License - see LICENSE file for details.
Built with ❤️ and powered by Google Gemini AI
