1.0.1 • Published 11 months ago

prompt-perfect-plugin v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Prompt Perfect Reversed - Sammy970

Version 1.0.1

Original Creator Website: https://promptperfect.xyz/


How to use ?

  1. First install the package:

npm install prompt-perfect-plugin

  1. Import the package:

import { rephrasePrompt } = require('prompt-perfect-plugin')

  1. Use the function:

await rephrasePrompt(textObj)


Note:

The text should be an object with the key value pair as follows:

textObj: { text: "Hello how are you" }


Example:

// 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);
  });
1.0.1

11 months ago

1.0.0

11 months ago