
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Small but powerful string cleanup and reduction library
It contains the following string manipulation methods:
remove.redundant - To remove redundant words from a sentenceremove.gibberish - To remove gibberish parts (or completely replace) from a sentenceremove.characters - To intelligentally trim the sentenceThe remove.js file contains the whole library.
You can use npm to install remove.js. Just do:
npm install remove.js
Then use it like:
var remove = require('remove');
var string = "bmgbberish This is This is a chkgbbr nice day day";
string = remove.gibberish(string) // returns "This is This is a nice day day"
string = remove.redundant(string) // returns "This is a nice day"
string = remove.characters(string, 10) // returns "This … day"
To use it in browser, simply include the file remove.js in your html
<script src="remove.js"></script>
... and use it like
var string = "bmgbberish This is This is a chkgbbr nice day day";
string = remove.gibberish(string) // returns "This is This is a nice day day"
// and so on.
remove.js also works with jQuery. If jQuery is found on the page where you have included the file, then it registers the following custom methods:
removeRedundant() (and its short version rR())removeGibberish() (and its short version rG())removeCharacters() (and its short version rC())All of the methods are chainable (like any other jquery method)
Here's how to convert the above mentioned example into jQuery syntax:
var strings = $(["bmgbberish This is This is a chkgbbr nice day day"]);
strings = strings.removeRedundant().removeGibberish().removeCharacters(10);
// too much typing ? try this:
strings = strings.rR().rG().rC(10)[0]; // returns "This … day"
The remove.js file is around 14 KB, but the minified is only 3.75 KB and the gzipped minified is even smaller (1.64 KB).
All the methods are documented inline and a nice docco view can be found here
Certain Limitations:
Hacked by Girish Sharma. Taken from Location Bar Enhancer and further enhanced.
This work is licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/.
FAQs
Small but powerful string cleanup and reduction library
We found that remove.js 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.