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.
yandex-predictor
Advanced tools
Yandex.Prediсtor is an application that prompts the most likely continuation of words or phrases typed by the user. It simplifies text entry, especially on mobile devices. In this case, the predictor takes into account possible typos. You can use it with this NPM package.
Follow this list
npm i --save yandex-predictor
Here are how to use
// require the package
const YaPre = require('yandex-predictor');
// Create an instance of the class with the API key.
let ya = new YaPre('API_KEY');
Get the list of languages
// example of using getLangs method
ya.getLangs((res) => {
console.log(res); // Callback func with response
}, 'json' );
Param | Type | Default |
---|---|---|
callback | func(res) | - |
type | string ('json', 'xml') | 'json' |
Get the complete of phrase
// example of using getLangs method
ya.complete((res) => {
console.log(res); // Callback func with response
}, 'hello w', 'json' );
Param | Type | Default |
---|---|---|
callback | func(res) | - |
q | string | - |
lang | string | 'en' |
type | string ('json', 'xml') | 'json' |
limit | int | 1 |
FAQs
The API Client for Yandex Predictor
The npm package yandex-predictor receives a total of 8 weekly downloads. As such, yandex-predictor popularity was classified as not popular.
We found that yandex-predictor 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.