respond

WebJar for respond

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

respond
Последняя версия

Последняя версия

0.9.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

respond
WebJar for respond
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/schme16/node-respond

Скачать respond

Имя Файла Размер
respond-0.9.0.pom
respond-0.9.0.jar 6 KB
respond-0.9.0-sources.jar 22 bytes
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/respond/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>respond</artifactId>
    <version>0.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/respond/
implementation 'org.webjars.npm:respond:0.9.0'
// https://jarcasting.com/artifacts/org.webjars.npm/respond/
implementation ("org.webjars.npm:respond:0.9.0")
'org.webjars.npm:respond:jar:0.9.0'
<dependency org="org.webjars.npm" name="respond" rev="0.9.0">
  <artifact name="respond" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='respond', version='0.9.0')
)
libraryDependencies += "org.webjars.npm" % "respond" % "0.9.0"
[org.webjars.npm/respond "0.9.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Respond


node-respond is an auto-responding Async CLI/CMD wrapper for NodeJS with a syntax based on node-suppose by jprichardson (https://github.com/jprichardson/node-suppose).

Why?

After searching around for a super simple way to format a HDD in NodeJS I settled on using nodes child_proccess, but found responding to questions from the CLI an absolute nightmare of spaghetti, and so this was born!

Installation

npm install respond

It's really that easy!

Usage

Note: you can set these in any order you please.

Initiate the funtion: var respond = require('respond');

Set responses: respond.on('what to listen for', 'what to respond with') NOTE: they don't have to be in order!

Set debug: respond.debug(function(msg){ /*Handle message data*/ }) Debug reports all strings to any functions you set to it.

Set error handlers: respond.error(function(errMsg){ /*Handle Error*/ })

Set end handlers: respond.end(function(exitCode){ /*Handle End*/ })

Example

    var respond = require('respond');
    
    respond('npm', ['init'])
    .on(/name\: \([\w|\-]+\)[\s]*/, 'awesome_package')
    .on('version: (0.0.0) ', '0.0.1')
    .on('description: ',"It's an awesome package man!")
    .on('entry point: (index.js) ',"")
    .on('test command: ','npm test')
    .on('git repository: ', "")
    .on('keywords: ', 'awesome, cool')
    .on('author: ', 'Shane Gadsby')
    .on('license: (BSD) ', 'MIT')
    .on('ok? (yes) ', 'yes')
    .error(function(err){
        console.log(err.message);
    })
    .end(function(code){
        console.log('Exit code: ', code)
    })

License

(MIT License)

Copyright 2013, Shane Gadsby

Версии библиотеки

Версия
0.9.0