1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v.gen.js, os_js: port the OS module to JS (#10872)

This commit is contained in:
playX
2021-07-23 18:04:36 +03:00
committed by GitHub
parent 6313ed6a79
commit 69cbdf9fdc
8 changed files with 454 additions and 4 deletions

13
vlib/os_js/os.v Normal file
View File

@@ -0,0 +1,13 @@
module os_js
pub const (
// todo(playX): NodeJS does not seem to have any path limit?
max_path_len = 4096
)
pub struct Result {
pub:
exit_code int
output string
// stderr string // TODO
}