Version 1.0.1
Original Creator Website: https://promptperfect.xyz/
- First install the package:
npm install prompt-perfect-plugin
- Import the package:
import { rephrasePrompt } = require('prompt-perfect-plugin')
- Use the function:
await rephrasePrompt(textObj)
textObj: { text: "Hello how are you" }
// Import the package
const { rephrasePrompt } = require('prompt-perfect-plugin');
// Define the text object
const textObj = { text: "Hello, how are you?" };
// Call the rephrasePrompt function
rephrasePrompt(textObj)
.then((rephrasedPrompt) => {
// Process the rephrased prompt
console.log('Rephrased prompt:', rephrasedPrompt.text);
})
.catch((error) => {
console.error('Error:', error);
});