0.1.20 • Published 10 years ago

dm-prompt v0.1.20

Weekly downloads
2
License
ISC
Repository
github
Last release
10 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

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago