Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
remark-retext
Advanced tools
npm:
npm install remark-retext
remark-retext is also available for duo, and as an AMD, CommonJS, and globals module, uncompressed and compressed.
var remark = require('remark');
var retext = require('retext');
var report = require('vfile-reporter');
var lint = require('remark-lint');
var html = require('remark-html');
var equality = require('retext-equality');
var remark2retext = require('remark-retext');
remark()
.use(lint)
.use(remark2retext, retext().use(equality))
.use(html)
.process('## Hey guys\n', function (err, file, doc) {
if (err) {
throw err;
} else {
process.stderr.write(report(file) + '\n');
process.stdout.write(doc);
}
});
Yields:
<stdin>
1:1-1:12 warning First heading level should be `1` first-heading-level
1:8-1:12 warning `guys` may be insensitive, use `people`, `persons`, `folks` instead
⚠ 2 warnings
<h2>Hey guys</h2>
remark.use(remark2retext, retext)
Parameters:
remark2retext
— This plug-in;retext
(Processor
).FAQs
remark plugin to support retext
The npm package remark-retext receives a total of 62,419 weekly downloads. As such, remark-retext popularity was classified as popular.
We found that remark-retext 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.