nano-banana-pro-prompt
v1768559.175.715
Published
Professional integration for https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
Maintainers
Readme
nano-banana-pro-prompt
A lightweight JavaScript library providing a collection of pre-designed prompts optimized for various AI models, enabling rapid prototyping and experimentation. This package simplifies the process of generating effective prompts for tasks like content creation, data analysis, and code generation.
Installation
Install the package using npm: bash npm install nano-banana-pro-prompt
Usage Examples
Here are a few examples demonstrating how to use nano-banana-pro-prompt in your JavaScript/Node.js projects:
1. Generating a Blog Post Outline: javascript const { generateBlogPostOutlinePrompt } = require('nano-banana-pro-prompt');
const topic = "The Future of Artificial Intelligence"; const prompt = generateBlogPostOutlinePrompt(topic);
console.log(prompt);
// Expected Output (example): // "Create a detailed blog post outline on the topic of 'The Future of Artificial Intelligence'. // Include sections on: 1. Introduction 2. Current State of AI 3. Key Technological Advancements 4. Potential Benefits 5. Ethical Considerations 6. Future Trends 7. Conclusion. Each section should have at least 3 sub-points."
2. Summarizing a Technical Document: javascript const { summarizeDocumentPrompt } = require('nano-banana-pro-prompt');
const documentText = "Large amount of technical text..."; // Replace with the actual document content
const prompt = summarizeDocumentPrompt(documentText);
console.log(prompt);
// Expected Output (example): // "Summarize the following technical document, extracting the key findings, methodologies, and conclusions. Keep the summary concise and under 200 words:\n\nLarge amount of technical text..."
3. Generating Code for a Simple Function: javascript const { generateCodePrompt } = require('nano-banana-pro-prompt');
const functionDescription = "A function that calculates the factorial of a given number."; const programmingLanguage = "JavaScript";
const prompt = generateCodePrompt(functionDescription, programmingLanguage);
console.log(prompt);
// Expected Output (example): // "Generate JavaScript code for the following function: A function that calculates the factorial of a given number. Include clear comments and error handling."
4. Translating Text to Another Language: javascript const { translateTextPrompt } = require('nano-banana-pro-prompt');
const textToTranslate = "Hello, how are you?"; const targetLanguage = "Spanish";
const prompt = translateTextPrompt(textToTranslate, targetLanguage);
console.log(prompt);
// Expected Output (example): // "Translate the following English text into Spanish: Hello, how are you?"
5. Generating Ideas for a Marketing Campaign: javascript const { generateMarketingIdeasPrompt } = require('nano-banana-pro-prompt');
const productDescription = "A new noise-canceling headphone with exceptional sound quality."; const targetAudience = "Young professionals and students";
const prompt = generateMarketingIdeasPrompt(productDescription, targetAudience);
console.log(prompt);
// Expected Output (example): // "Generate 5 creative marketing campaign ideas for a new noise-canceling headphone with exceptional sound quality, targeting young professionals and students. Focus on strategies that highlight its features and benefits."
API Summary
The nano-banana-pro-prompt package provides the following functions:
generateBlogPostOutlinePrompt(topic: string): string- Generates a prompt for creating a blog post outline on a given topic.summarizeDocumentPrompt(documentText: string): string- Generates a prompt for summarizing a technical document.generateCodePrompt(functionDescription: string, programmingLanguage: string): string- Generates a prompt for generating code for a given function in a specific programming language.translateTextPrompt(textToTranslate: string, targetLanguage: string): string- Generates a prompt for translating text from one language to another.generateMarketingIdeasPrompt(productDescription: string, targetAudience: string): string- Generates a prompt for generating marketing campaign ideas for a given product and target audience.
License
MIT License
This package is part of the nano-banana-pro-prompt ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
