Popularity
2.0
Declining
Activity
0.0
Stable
123
8
5

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Command Line Apps     Path     App     CLI     Process     File     Bin     Stdio     Shell     Temp     Tmp     Substitution     Pipe     Stdin    
Latest version: v2.0.0

tmpin alternatives and similar modules

Based on the "Command Line Apps" category.
Alternatively, view tmpin alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of tmpin or a related project?

Add another 'Command Line Apps' Module

README

tmpin Build Status

Add stdin support to any CLI app that accepts file input

It pipes stdin to a temp file and spawns the chosen app with the temp file path as the first argument.

Similar to process substitution in ZSH/Bash, but cross-platform and without its limitation.

Install

$ npm install --global tmpin

Usage

$ tmpin --help

  Usage
    echo <string> | tmpin <app> [<args>]

  Example
    git diff | tmpin atom

  Note that the first argument to <app> will be set to the temp file

Tip

Create an alias in your .zshrc/.bashrc:

alias atom='tmpin atom'

# Or more specific
alias gda='git diff | tmpin atom'

License

MIT © Sindre Sorhus


*Note that all licence references and agreements mentioned in the tmpin README section above are relevant to that project's source code only.