微信小程序蓝牙开发教程带你探索物联网的便捷与魅力
611
2022-10-29
tmpin - 添加stdin支持至任何CLI应用程序接受文件输入
Add stdin support to any CLI app that accepts file input
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.
Install
$ npm install --global tmpin
Usage
$ tmpin --help Usage echo
Tip
Create an alias in your .zshrc/.bashrc:
alias atom='tmpin atom'# or more specificalias gda='git diff | tmpin atom'
License
MIT © Sindre Sorhus
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。