tmpin:向任何接受文件输入的CLI应用程序添加标准输入支持

时间:2021-05-26 03:27:51
【文件属性】:
文件名称:tmpin:向任何接受文件输入的CLI应用程序添加标准输入支持
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-26 03:27:51
JavaScript 坦宾 向任何接受文件输入的CLI应用程序添加标准输入支持 它将stdin传递到临时文件,并以临时文件路径作为第一个参数生成所选应用程序。 类似于ZSH / Bash中的,但跨平台且不受其。 安装 $ npm install --global tmpin 用法 $ tmpin --help Usage echo | tmpin [] Example git diff | tmpin atom Note that the first argument to will be set to the temp file 小费 在.zshrc / .bashrc创建一个别名: alias atom= ' tmpin atom ' # Or more specific alias gda= ' git diff
【文件预览】:
tmpin-main
----.gitattributes(29B)
----.github()
--------workflows()
----test.js(213B)
----license(1KB)
----fixture.js(125B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----readme.md(834B)
----cli.js(554B)
----package.json(701B)

网友评论