Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Takes in a document, spits out a tokenised and stemmed array of terms. Using Porter's Algorithm.
stm.stem(text, noStopWords)
. Returns an array of terms, stemmed and without punctuation.
text
is the string (text document) in which the calculations are to be performed on.noStopWords
defaults to true
. Set to false
if you want to include stop words–e.g words such as "I" and "the".Note: This is basically a wrapper around the stem-porter
library by kastor
.
var stm = require('stm');
var str = "you're simply a simplistic house, made for housing";
var stemmed = stm.stem(str); // noStopWords -> `true`
>> ["simpli", "simplist", "hous", "hous"]
var withStopWords = stm.stem(str, false); // turn off the removal of stop words
>> [ 'you', 're', 'simpli', 'a', 'simplist', 'hous', 'made', 'for', 'hous'];
FAQs
Takes in a document, spits out a tokenised and stemmed array of terms.
The npm package stm receives a total of 7 weekly downloads. As such, stm popularity was classified as not popular.
We found that stm 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.