
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Recursively walk through a directory and construct a front matter sitemap.
npm install krypa
var krypa = require('krypa');
var hm = require('hjson-matter');
// generate a sitemap of YAML front-matter
var sitemap = krypa('./directory');
// specify your own front-matter parser
var sitemap = krypa('./directory', hm);
// pass ignore options to globby
var sitemap = krypa('./directory', { ignore: '!**/*.md' });
// pass ignore options AND a custom parser
var sitemap = krypa('./directory', {
ignore: '!**/*.md',
parser: hm
});
directory
{String} - Path of the directory you want to generate a front matter sitemap for.
options
{Function|Object} - The ignore and parser options, or just options.parser
directly.
options.ignore
{String|String[]} - Glob of files to ignore to pass to globby (see node-glob).
Default: !**/*.{html,markdown,md,nunjucks,swig,twig}
options.parser
{Function} - Custom parser to extract front-matter from files. This should return the front-matter data itself, so if your parser returns the data as an object property (such as attributes
in front-matter), you should create a light wrapper around it.
Default: a light wrapper around gray-matter
FAQs
Front matter sitemap generator.
We found that krypa 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.