1.2.2 • Published 26 days ago

@prescient-devices/node-red-contrib-promptinput v1.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
26 days ago

node-red-contrib-promptinput

A node that once its button is pressed or it receives a message, prompts the user for input and emits a message with that input converted to a desired data type. An optional JSONata expression can be used to validate the input and emit a message only when the validation succeeds.

Installation

Node-RED editor's palette manager may be used to install the node. Alternatively, the command line may also be used to install the node with the following commands (assuming the user's Node-RED directory is ${HOME}/.node-red):

$ cd "${HOME}"/.node-red
$ npm install --production node-red-contrib-promptinput
[...]

Node

  • promptinput

Running Tests

The development dependencies need to be installed before running the test-bench. This can be accomplished with the following commands (assuming ${HOME}/node-red-contrib-promptinput is the node's development directory where the node's package.json is):

$ cd "${HOME}"/node-red-contrib-promptinput
$ npm install
[...]

Then to run the tests:

$ cd "${HOME}"/node-red-contrib-promptinput
$ npm test
[...]

Contributing / Fixes

An issue may be raised for typos and single-line fixes. A pull request may be opened in the node's GitHub repository for more complex fixes and/or contributions.

Copyright and license

Copyright Prescient Devices, Inc. under the MIT license, which is in the LICENSE file.

1.2.2

26 days ago

1.2.1

26 days ago

1.2.0

27 days ago

1.1.1

27 days ago

1.1.0

27 days ago

1.1.3

27 days ago

1.1.2

27 days ago

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago