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.
npm install --save examjs
let exam = require("examjs")
Method | Description | Params | Code |
---|---|---|---|
exam | inital method | String | exam("You want to check this string?") |
exact | find for exact, letter to letter matches | Array [, callback] | exam("Some string in there").exact(["some", "in", "no"]) |
atLeast | find for at least some matches | Array [, callback] | exam("Some string in there").atLeast(["some", "in", "no"]) |
exact
and atLeast
functions returns Promise
if you didn't specify the callback
as a second argumentexam("In our village, folks say God crumbles up the old moon into stars. Перевод недоступен.")
.atLeast(["our", "moon", "vill", "перев"], result => {
console.log(result)
/* -->
{
found: [ 'our', 'moon', 'vill', 'перев' ],
notfound: null,
filters: [ 'our', 'moon', 'vill', 'перев' ],
examing: 'in our village, folks say god crumbles up the old moon into stars. перевод недоступен.',
mode: 'soft',
only: { yep: true }
}
*/
})
exam("In our village, folks say God crumbles up the old moon into stars. Перевод недоступен.")
.exact(["our", "перевод", "vill", "перев"])
.then( result => {
console.log(result)
/* -->
{
found: [ 'our', 'перевод' ],
notfound: [ 'vill', 'перев' ],
filters: [ 'our', 'перевод', 'vill', 'перев' ],
examing: 'in our village, folks say god crumbles up the old moon into stars. перевод недоступен.',
mode: 'strict'
}
*/
})
FAQs
You can use this library for examing something for something
We found that examjs 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.