
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Generate human-like text effortlessly with easyGPT - the powerful ChatGPT API wrapper.
import EasyGPT from "easygpt";
const gpt = new EasyGPT();
gpt
.setApiKey("<YOUR API KEY HERE>")
.addMessage("Hello ChatGPT!");
.then(response => console.log(response))
Before installing make sure your Node.js version is at least v14.
Your project must be running ES Modules.
$ npm i easygpt
Import the package.
import EasyGpt from "easygpt";
Create a new instance of EasyGpt.
const gpt = new EasyGpt();
Set your API key.
gpt.setApiKey("your API key goes here.");
Create one for free @ https://platform.openai.com/account/api-keys
// Add a prompt you would like to say to ChatGPT.
gpt
.addMessage("Hello ChatGPT!")
// Give some instructions to the AI
.addRule("Use emoticons in every answer and use a friendly tone.");
// Get the response from ChatGPT.
const response = await gpt.ask();
console.log(response.content);
Hello! How can I assist you today? 😊
gpt.addMessage("Hello ChatGPT! My name is Adam!");
let response = await gpt.ask();
console.log(response.content);
// Add an additional message to the stack.
gpt.addMessage("What was my name again?");
response = await gpt.ask();
console.log(response.content);
Hello Adam! It's nice to meet you. How can I assist you today?
Your name is Adam.
There is a long list of tested examples on our documentation site.
FAQs
NPM module to communicate with the ChatGPT API
The npm package easygpt receives a total of 11 weekly downloads. As such, easygpt popularity was classified as not popular.
We found that easygpt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.