Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including metalsmith-metadata with all npm packages installed. Try it out:

var metalsmithMetadata = require("metalsmith-metadata")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

metalsmith-metadata v0.0.4

A metalsmith plugin to load global metadata from files.


A metalsmith plugin to load global metadata from files.

Supports .json and .yaml data.


$ 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');

  authors: './path/to/authors.json',
  categories: './path/to/categories.yaml'




RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free