metalsmith-npm
Metalsmith plugin to include npm modules in your globals.
Parameters
"metalsmith-npm": <global variable to use>: <package name in npm to >
Example Javascript Usage
var npm = ; metalsmith;
This is equivalent to:
metalsmith;
But is more concise and can be used with a CLI .json configuration, unlike the code above.
Example CLI Usage
"metalsmith-npm": "_": "lodash" "typogr": "typogr"
Then in your other files you may use the globals, e.g. in archive.jade:
block content - var lineHeight = 2.2; - var archives = _.chain(articles).groupBy(function(item) { ...