Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
|
| 3 |
+
result = subprocess.run(
|
| 4 |
+
["node", "index.js"],
|
| 5 |
+
capture_output=True,
|
| 6 |
+
text=True
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
print("Output:")
|
| 10 |
+
print(result.stdout)
|
| 11 |
+
|
| 12 |
+
print("Errors (if any):")
|
| 13 |
+
print(result.stderr)
|