metalsmith-prompt

0.0.8 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i metalsmith-prompt

Weekly Downloads

794

Version

0.0.8

License

MIT

Last publish

Collaborators

  • woodyrew
  • ianstormtaylor
  • segmentio
  • f2prateek