segmentio/metalsmith — pull request #55 by joaoafrmartins (2014-05-09 12:04:03+00:00)
Title: make metalsmith cli requireable

makes metalsmith cli requireable by exporting a function that accepts a directory to be used as the current working directory for the Metalsmith instance. a "metalsmith.json" file should already be present under the directory used as the cwd for the new instance when "lib/cli.js" is required.