Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
remark-yaml-config
Advanced tools
Configure remark with YAML front-matter. This requires
remark-frontmatter
as well.
npm:
npm install remark-yaml-config
Say we have the following file, example.md
:
---
remark:
commonmark: true
bullet: "*"
---
1) Commonmark list (this is a parse setting)
* Hello (this is a stringify setting)
And our script, example.js
, looks as follows:
var vfile = require('to-vfile')
var remark = require('remark')
var frontmatter = require('remark-frontmatter')
var yamlConfig = require('remark-yaml-config')
remark()
.use(frontmatter)
.use(yamlConfig)
.process(vfile.readSync('example.md'), function(err, file) {
if (err) throw err
console.log(String(file))
})
Now, running node example
yields:
---
remark:
commonmark: true
bullet: "*"
---
1. Commonmark list (this is a parse setting)
* Hello (this is a stringify setting)
remark.use(yamlConfig)
Passes the configuration at the remark
field as parse
and stringify settings to remark.
Just like remark-comment-config
, but YAML is
more visible.
remark-comment-config
— Configure with commentsremark-frontmatter
— Frontmatter support, including yaml, toml, and moreSee contributing.md
in remarkjs/remark
for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
FAQs
remark plugin to configure it with YAML frontmatter
We found that remark-yaml-config 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.