UNPKG

think-cli

Version:

A simple CLI for scaffolding Thinkjs projects.

10 lines (9 loc) 216 B
module.exports = function(ctx = {}) { return function(files, metalsmith, done) { const metadata = metalsmith.metadata(); for (var key in ctx) { metadata[key] = ctx[key]; } done(null); }; };