Skip to content
A metalsmith plugin to prompt the user for series of answers and add them to the global metadata.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
History.md
Makefile
Readme.md
package.json

Readme.md

metalsmith-prompt

A metalsmith plugin to prompt the user for series of answers and add them to the global metadata.

Installation

$ npm install metalsmith-prompt

Example

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

metalsmith.use(prompt({
  name: 'string',
  lucky: 'number',
  designer: 'boolean'
}));

Which will prompt the user like so:

        name: Ian
       lucky: 42
    designer? (y/n) y

License

MIT

You can’t perform that action at this time.