Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - sindresorhus/tmpin: Add stdin support to any CLI app that accepts file input
Add stdin support to any CLI app that accepts file input - sindresorhus/tmpin
Visit SiteGitHub - sindresorhus/tmpin: Add stdin support to any CLI app that accepts file input
Add stdin support to any CLI app that accepts file input - sindresorhus/tmpin
Powered by 0x5a.live ๐
tmpin
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'
NodeJS Resources
are all listed below.
GitHub - marionebl/svg-term-cli: Share terminal sessions via SVG and CSS
resource
~/github.com
resource
GitHub - sindresorhus/public-ip: Get your public IP address - very fast!
resource
~/github.com
resource
GitHub - docsifyjs/docsify: ๐ A magical documentation site generator.
resource
~/github.com
resource
Made with โค๏ธ
to provide different kinds of informations and resources.