Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
a wrapper for the Wikipedia API that provides data mining functionality.
##Wikiminer
###About Wikiminer is a wrapper for the Wikipedia API that provides data mining functionality. By simply providing the title of a Wikipedia article, Wikiminer returns a promise, passing through an object that contains:
When finding most and least common words, case is ignored and singular and plural versions of words are counted together.
###Usage
npm install wikiminer
const wikiminer = require('wikiminer');
wikiminer(*title*, *topCount*, *leastCount*);
result structure { text: '', textMinusStop: '', topWords: [], leastWords: [] }
###Example
The following example
const wikiminer = require('wikiminer');
wikiminer('dog', 5, 5)
.then(function(result){
console.log(result)
})
Will print to the console:
{
text: /*the text of the dog article*/,
textMinusStop: /*the text of the dog article without stop words */ ,
topWords:[ { word: 'dog', count: 345 },
{ word: 'human', count: 60 },
{ word: 'wolf', count: 48 },
{ word: 'breed', count: 47 },
{ word: 'pet', count: 40 } ],
leastWords: [ { word: 'inadequate', count: 1 },
{ word: 'taxa', count: 1 },
{ word: 'colour', count: 1 },
{ word: 'sobriquet', count: 1 },
{ word: 'etymology', count: 1 } ]
}
FAQs
a wrapper for the Wikipedia API that provides data mining functionality.
We found that wikiminer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.