0.0.4 • Published 5 years ago

@typeshell/env v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

shellenv

如何写文件和读文件

对于异步设计:

echo("Hello world\nHello universe")
    .tee("filepath1", ["filepath2 in append-mode"], "filepath3")
echoln("Hello world", "Hello universe")
    .tee("filepath1", ["filepath2 in append-mode"], "filepath3")

cat("filepath1", "filepath2")

对于同步设计

echo$("hello world", "hello world2")
    .tee$("filepath1", ["filepath2 in append-mode"], "filepath3")
    .tee$("filepath1", ["filepath2 in append-mode"], "filepath3")