
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@dbushell/hyperless
Advanced tools
HTML parser and various utilities.
parseHTML
Parse an HTML document or fragment into a traversable node tree.
import {parseHTML} from '@dbushell/hyperless';
const root = parseHTML('<h1>Hello, World!</h1>');
Node API subject to change.
parseAttributes
Parse an HTML attribute string into a case-insensitive deduplicated key/value map.
import {parseAttributes} from '@dbushell/hyperless';
const map = parseAttributes('a="1" b="2" c d="d" D="d" e=e');
HTML entity encoding is handled automatically by default.
stripTags
Remove HTML and return text content with a few niceties.
import {stripTags} from '@dbushell/hyperless';
// Pass a chunk of HTML
const text = stripTags('<p>Ceci n’est pas une paragraphe.</p>');
Text in <blockquote>
and <q>
are wrapped in quotation marks.
excerpt
Generate a text excerpt from HTML content.
import {excerpt} from '@dbushell/hyperless';
// Pass a chunk of HTML
const text = excerpt(html);
Output is context aware trimmed to the nearest sentence, or word, to fit the maximum length as close as possible.
An optional maxLength
can be passed as the second argument (default: 300
characters).
MIT License | Copyright © 2024 David Bushell
FAQs
HTML parser and various utilities.
The npm package @dbushell/hyperless receives a total of 2 weekly downloads. As such, @dbushell/hyperless popularity was classified as not popular.
We found that @dbushell/hyperless demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.