Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
remove-words
Advanced tools
A node module that returns all words from a string not that were not in a specified list. By default will remove all pronouns and conjunctions
A node module that returns an array of all words in a string that are not a pronoun or generic words.
This can be used for storing just the keywords of a string in a database and not wasting space with words like 'and', 'to', 'the'... which are unlikely to be searched for in a query.
npm install remove-words --save
var removeWords = require('remove-words');
removeWords("Today is sunny so we are going to go swimming at the seaside");
// Will return: ['today', 'sunny', 'swimming', 'seaside']
var names = ['jack', 'john', 'joe', 'james', 'jim']
removeWords("The winners are: Jack, John and Jim!!!", names)
// Will remove just all names
Run npm test
gulp build
- Lints and compiles CoffeeScriptgulp test
- Runs testsgulp
- Watches for changes, cleans working directory, builds and testsMIT � Alicia Sykes
FAQs
A node module that returns all words from a string not that were not in a specified list. By default will remove all pronouns and conjunctions
The npm package remove-words receives a total of 248 weekly downloads. As such, remove-words popularity was classified as not popular.
We found that remove-words 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.