
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
metalsmith-firebase
Advanced tools
Load firebase data into metalsmith.
$ npm install metalsmith-firebase --save
Add metalsmith-firebase
to your metalsmith.json
plugins and specify your firebase options:
{
"plugins": {
"metalsmith-firebase": {
"url": "https://myfirebase.firebaseio.com",
"options": {
"collections": [
"pages",
"posts"
]
}
}
}
}
Pass options
to the firebase plugin and pass it to Metalsmith with the use
method:
import firebase from 'metalsmith-firebase';
metalsmith.use(firebase({
url: 'https://myfirebase.firebaseio.com',
options: {
collections: [
"pages",
"posts"
]
}
}));
You can specify options to merge data into files. By including "collections", you can specify the references that will be used to create pages from a _key
property. For example, if I have _key: posts/2016-09-05-metalsmith-firebase
, a file will be created with that _key
, the property will be removed, and all the data will be assigned to that object, including contents which will be transformed to a buffer for other metalsmith plugins.
Access the data on the firebase
object within the template file.
FAQs
Load firebase data into metalsmith.
We found that metalsmith-firebase 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.