
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
gatsby-plugin-folder-metadata
Advanced tools
While building a large and complex website, I ran into a situation where I wanted to be able to have metadata that applied to every file within a folder. This plugin reads in `metadata.json` files and adds them to the `metadata.data` field on Gatsby `File
While building a large and complex website, I ran into a situation where I
wanted to be able to have metadata that applied to every file within a folder.
This plugin reads in metadata.json
files and adds them to the metadata.data
field on Gatsby File
nodes.
If a parent folder has metadata, it's included under the metadata.parent
field. This allows a single node to respond to all metadata that may be
relevant. For instance, this allows metadata to be used to assign a different
path to be used when generating pages from a folder's contents.
For instance, for .mdx
files, you can query the metadata generated by this
plugin with
query YourQuery {
allMdx {
edges {
node {
parent {
... on File {
fields {
metadata {
data {
your
json
keys
}
}
}
}
}
}
}
}
}
It's verbose and a little awkward, but it means that the only requirement for
using this plugin is using source plugins that generate File
nodes. This lets
it compose well with other plugin without knowledge of them.
FAQs
While building a large and complex website, I ran into a situation where I wanted to be able to have metadata that applied to every file within a folder. This plugin reads in `metadata.json` files and adds them to the `metadata.data` field on Gatsby `File
The npm package gatsby-plugin-folder-metadata receives a total of 1 weekly downloads. As such, gatsby-plugin-folder-metadata popularity was classified as not popular.
We found that gatsby-plugin-folder-metadata 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.