Displaying 1 to 20 from 28 results

Inquirer.js - A collection of common interactive command line user interfaces.

  •    Javascript

A collection of common interactive command line user interfaces.Version 4.x only supports Node 6 and over. For Node 4 support please use version 3.x.

ltcdr - like commander, but accepting pull requests

  •    Javascript

the complete solution for node.js command-line programs

tmpin - Add stdin support to any CLI app that accepts file input

  •    Javascript

It pipes stdin to a tempfile and spawns the chosen app with the tempfile path as the first argument.Similar to process substitution in ZSH/Bash, but cross-platform and without its limitation.




esc-exit - Exit the process when the `esc` key is pressed

  •    Javascript

Useful for CLI tools to let the user press esc to get out.Using this prevents the process from exiting normally.

get-stdin - Get stdin as a string or buffer

  •    Javascript

Both methods returns a promise that is resolved when the end event fires on the stdin stream, indicating that there is no more data to be read.Get stdin as a string.


dupsh - pipe together two shell commands full duplex

  •    Javascript

Piping together 2 processes full duplex is very handy for testing symmetric and peer to peer protocols because you can use the same program for both sides of the connection. Otherwise you would need to spin up a tcp server and client or otherwise clutter up your program with transport implementation details.and the stderr from both programs falls through.

node-tweet-cli - Start making tweets from your bash, zsh, whatever!

  •    Javascript

Small node.js cli tool that allows to tweet from bash, zsh, whatever..You will be able to use tweet command in your shell.

ttys - Guaranteed read and write streams to the terminal

  •    Javascript

This micro module provides tty.ReadStream and tty.WriteStream instances to the user's terminal, even when the regular stdin or stdout streams are already being piped to other commands.Suppose you want to provide a curl | node command to your users.

question-store - Ask questions, store the answers.

  •    Javascript

Ask questions, persist the answers. Basic support for i18n and storing answers based on current working directory. Inherits question-cache and persists answers to disk. Answers are stored based on current working directory.

bdd-stdin - Utility for easily feeding mock responses to unit tests that require command line input from the user

  •    Javascript

Utility for easily mocking user responses for BDD unit tests that ask user a question. I needed something to help unit testing CLI apps.

tubesock - STDIN to WebSocket

  •    Javascript

Tubesock is a little utility that pipes STDIN to a WebSocket (and back again). The port to open the WebSocket server on. Default 9999.

node-mock-stdin - Mock STDIN file descriptor in Node.js

  •    Javascript

Provide a mock readable stream, useful for testing interactive CLI applications. Maybe simple mocks for other standard files wouldn't be a terrible idea, if anyone feels like those are needed. Patches welcome.

read-file-stdin - Read from a file, falling back to stdin.

  •    Javascript

Read from a file, falling back to stdin. Read from a file, falling back to stdin, and callback(err, buffer).

process_helper - Makes it easy to spawn Ruby sub-processes with guaranteed exit status handling, capturing and/or suppressing combined STDOUT and STDERR streams, providing STDIN input, timeouts, and running via a pseudo terminal

  •    Ruby

Makes it easy to spawn Ruby sub-processes with guaranteed exit status handling, capturing and/or suppressing combined STDOUT and STDERR streams, providing STDIN input, timeouts, and running via a pseudo terminal. By default, ProcessHelper will combine any STDERR and STDOUT, and output it to STDOUT, and also return it as the result of the #process method.

rw - Now stdin and stdout are files.

  •    Javascript

you’d be wrong, because Node only reads up to the size of the file reported by fs.stat rather than reading until it receives an EOF. So, if you redirect a file to your program (cat file | program), you’ll only read the first 65,536 bytes of your file. Oops. But that’s a pain, since now your code has two different code paths for reading inputs depending on whether you’re reading a real file or stdin. And the code gets even more complex if you want to read that file synchronously.





We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.