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.
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 82,512 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.
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.