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.
@beneb/remark-behead
Advanced tools
Behead is a remark plugin to increase and decrease the weight of markdown headings. Passing a negative value to the weight option will decrease the heading weight. Passing a positive value to the weight option will increase the heading weight
npm install [ --save ] @ben-eb/remark-behead
import behead from 'remark-behead'
Meta
Properties
preserve
Boolean Defaults to truebefore
String Defaults to nullafter
String Defaults to nullweight
Number Defaults to 0Manipulates heading nodes after but not including the given string. Note: When using this option, behead will start working after the first occurrence of the given string.
Examples
remark.use(behead, {weight: 1, after: '# After this'})
.process('# After this\n## Hello\n## World')
=> '# After this\n# Hello\n# World\n'
Manipulates heading nodes before but not including the given string. Note: When using this option, behead will stop working at the first occurrence of the given string.
Examples
remark.use(behead, {weight: 1, before: '# Before this'})
.process('# Hello\n# World\n# Before this')
=> '## Hello\n## World\n# Before this\n'
Manipulates heading nodes between but not including the two given strings, starting with options.between[0] and ending with options.between[1].
Examples
remark(behead, {weight: 1, between: ['# Hello', '# World']})
.process('# Hello\n# Between\n# World')
=> '# Hello\n## Between\n# World\n'
FAQs
Add or remove heading levels
We found that @beneb/remark-behead 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 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.