0.1.20 • Published 9 years ago

dm-prompt v0.1.20

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

dm-prompt

Description

  • A module for simplyfying the usage of nodejs prompts.
  • Currently based on inquirer
  • make it possible to yield a inquirer Prompt
  • has to be used within co
  • inquirer examples

Install

npm install dm-prompt --save

Usage

var dmPrompt = require("dm-prompt").Inquirer;
var co = require("co");

var job = {};

job.start = co.wrap(function*() {
    // for other options see inquirer examples
    var directoryAnswer =
        yield dmPrompt({
            type: "input",
            name: "directory",
            message: "Please state the Directory to where node_modules should link to:"
        });
    var directory = directoryAnswer.directory;
    console.log(directory);
});

module.exports = job;

Tasks

Config

  • you can place a .dm-prompt.json file in your home directory (~/.dm-prompt.json)
  • the following things are allowed at the moment
{
}

Lessons Learned

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago