Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

metalsmith-metadata

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-metadata

A metalsmith plugin to load global metadata from files.

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
96
-5.88%
Maintainers
3
Weekly downloads
 
Created
Source

metalsmith-metadata

A metalsmith plugin to load global metadata from files.

Supports .json and .yaml data.

Installation

$ npm install metalsmith-metadata

CLI Usage

Install via npm and then add the metalsmith-metadata key to your metalsmith.json plugins. Each key in the dictionary of options will be the key mixed into the global metadata, like so:

{
  "plugins": {
    "metalsmith-metadata": {
      "authors": "./path/to/authors.json",
      "categories": "./path/to/categories.yaml"
    }
  }
}

Javascript Usage

Pass the options to Metalsmith#use:

var metadata = require('metalsmith-metadata');

metalsmith.use(metadata({
  authors: './path/to/authors.json',
  categories: './path/to/categories.yaml'
}));

License

MIT

FAQs

Package last updated on 24 Nov 2015

Did you know?

Socket

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.

Install

Related posts