Allow specifying stdin (#360)

* Allow specifying stdin
This commit is contained in:
Seth Vargo authored and GitHub committed 2020-04-13 13:39:42 -04:00
1 parent b8b978b68b
commit 688bcddab6
6 files changed
+67

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
@echo off
set /p var=
echo %var%
+3
View File
@@ -0,0 +1,3 @@
var fs = require('fs')
var data = fs.readFileSync(0, 'utf-8')
process.stdout.write(data)
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
read var
echo $var