Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A node interface for WordAI's API.
WordAI's API allows you to POST an article or block of text and receive back a plain text or JSON formatted WordAI translated (spun) version of your text. Powered by WordAI.com.
You will need a password hash from https://wordai.com.
Please look at their documentation to see how to use the API. The convenience functions provided by this module simply pass their options along as form data to the REST API, so the documentation is totally valid. There are some usage examples below to see how these options should be passed in.
$ npm install wordai --save
$ export WORDAI_EMAIL=<YOUR_WORDAI_EMAIL>
$ export WORDAI_KEY=<YOUR_WORDAI_PASSWORD_HASH>
$ npm test
The spin method support promises and node-style callbacks.
const WordAI = require('wordai');
const wordai = new WordAI({
email: process.env.WORDAI_EMAIL,
hash: process.env.WORDAI_KEY,
output: 'json',
quality: 'Regular',
});
// To request some text be process by wordAI
wordai.spin({
text: 'Here is an example.',
// Other options here:
// noNested: 'on',
// sentence: 'on',
// paragraph: 'on',
// title: 'on',
// returnSpin: 'true',
// noOriginal: 'on',
// protected: 'my,protected,words',
// synonyms: 'word1|synonym1,word two|first synonym 2|2nd syn',
// perfectTense: 'correct',
}).then(response => {
console.log(response);
/*
{
"uniqueness": 100,
"text": "{Here is|Here's} {an example|a good example|an illustration}.\n",
"status": "Success"
}
*/
});
FAQs
NodeJS interface for WordAI API
We found that wordai demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.