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.
metalsmith-default-values
Advanced tools
A metalsmith plugin for setting default values for frontmatter metadata.
Metalsmith Plugin for setting default front-matter metadata.
Uses multimatch for pattern matching.
npm install -S metalsmith-default-values
Note: -S
switch saves the plugin to your package.json
.
const default_values = require('metalsmith-default-values');
...
.use(default_values([
{
pattern : 'posts/*.md',
defaults: {
layout: 'post.hbs',
date: function (post) {
return post.stats.ctime;
}
}
},
{
pattern : 'diary/*.md',
defaults: {
layout : 'diary.hbs',
private: true
}
},
{
pattern : [
'diary/*.md',
'archive/**/*.md'
],
defaults: {
no_index: true
}
},
{
pattern : '**/*.md',
defaults: {
layout : 'default.hbs'
}
}
]))
...
Because Joi > v6
uses ES6 syntax this runs on NodeJS v4
and above.
Make sure you have EditorConfig plugin for your editor.
npm test
runs the tests, also uses ESLint and Prettier
metalsmith-default-values is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
metalsmith-default-values is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with metalsmith-default-values. If not, see http://www.gnu.org/licenses/.
19 July 2018
#10
#11
5e7645c
7b255a9
210c7f9
d587d71
e9de8d3
fd0d488
4c26c3d
489007a
9d82281
FAQs
A metalsmith plugin for setting default values for frontmatter metadata.
The npm package metalsmith-default-values receives a total of 10 weekly downloads. As such, metalsmith-default-values popularity was classified as not popular.
We found that metalsmith-default-values 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.