├── .github └── FUNDING.yml ├── .gitignore ├── .npmignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── binding.gyp ├── example ├── cowsay.rs └── cowsay.wasm ├── package.json ├── run.js ├── src ├── binding.cc └── index.js └── test ├── c ├── cant_dotdot.c ├── clock_getres.c ├── exitcode.c ├── fd_prestat_get_refresh.c ├── follow_symlink.c ├── getentropy.c ├── getrusage.c ├── gettimeofday.c ├── notdir.c ├── poll.c ├── preopen_populates.c ├── read_file.c ├── read_file_twice.c ├── stat.c ├── stdin.c ├── symlink_escape.c ├── symlink_loop.c └── write_file.c ├── run.js ├── runner.js └── sandbox_outer ├── outside.txt └── sandbox ├── input.txt ├── notadir ├── subdir └── outside.txt ├── subdir1 ├── input.txt └── loop1 └── subdir2 ├── input_link.txt └── loop2 /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/README.md -------------------------------------------------------------------------------- /binding.gyp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/binding.gyp -------------------------------------------------------------------------------- /example/cowsay.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/example/cowsay.rs -------------------------------------------------------------------------------- /example/cowsay.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/example/cowsay.wasm -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/package.json -------------------------------------------------------------------------------- /run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/run.js -------------------------------------------------------------------------------- /src/binding.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/src/binding.cc -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/src/index.js -------------------------------------------------------------------------------- /test/c/cant_dotdot.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/cant_dotdot.c -------------------------------------------------------------------------------- /test/c/clock_getres.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/clock_getres.c -------------------------------------------------------------------------------- /test/c/exitcode.c: -------------------------------------------------------------------------------- 1 | // EXIT: 120 2 | 3 | int main() { 4 | return 120; 5 | } 6 | -------------------------------------------------------------------------------- /test/c/fd_prestat_get_refresh.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/fd_prestat_get_refresh.c -------------------------------------------------------------------------------- /test/c/follow_symlink.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/follow_symlink.c -------------------------------------------------------------------------------- /test/c/getentropy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/getentropy.c -------------------------------------------------------------------------------- /test/c/getrusage.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/getrusage.c -------------------------------------------------------------------------------- /test/c/gettimeofday.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/gettimeofday.c -------------------------------------------------------------------------------- /test/c/notdir.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/notdir.c -------------------------------------------------------------------------------- /test/c/poll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/poll.c -------------------------------------------------------------------------------- /test/c/preopen_populates.c: -------------------------------------------------------------------------------- 1 | int main(void) { 2 | return 0; 3 | } 4 | -------------------------------------------------------------------------------- /test/c/read_file.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/read_file.c -------------------------------------------------------------------------------- /test/c/read_file_twice.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/read_file_twice.c -------------------------------------------------------------------------------- /test/c/stat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/stat.c -------------------------------------------------------------------------------- /test/c/stdin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/stdin.c -------------------------------------------------------------------------------- /test/c/symlink_escape.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/symlink_escape.c -------------------------------------------------------------------------------- /test/c/symlink_loop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/symlink_loop.c -------------------------------------------------------------------------------- /test/c/write_file.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/c/write_file.c -------------------------------------------------------------------------------- /test/run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/run.js -------------------------------------------------------------------------------- /test/runner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devsnek/node-wasi/HEAD/test/runner.js -------------------------------------------------------------------------------- /test/sandbox_outer/outside.txt: -------------------------------------------------------------------------------- 1 | hello from the outside! 2 | -------------------------------------------------------------------------------- /test/sandbox_outer/sandbox/input.txt: -------------------------------------------------------------------------------- 1 | hello from input.txt 2 | -------------------------------------------------------------------------------- /test/sandbox_outer/sandbox/notadir: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/sandbox_outer/sandbox/subdir/outside.txt: -------------------------------------------------------------------------------- 1 | ../../outside.txt -------------------------------------------------------------------------------- /test/sandbox_outer/sandbox/subdir1/input.txt: -------------------------------------------------------------------------------- 1 | hello from input.txt 2 | -------------------------------------------------------------------------------- /test/sandbox_outer/sandbox/subdir1/loop1: -------------------------------------------------------------------------------- 1 | ../subdir2/loop2 -------------------------------------------------------------------------------- /test/sandbox_outer/sandbox/subdir2/input_link.txt: -------------------------------------------------------------------------------- 1 | ../subdir1/input.txt -------------------------------------------------------------------------------- /test/sandbox_outer/sandbox/subdir2/loop2: -------------------------------------------------------------------------------- 1 | ../subdir1/loop1 --------------------------------------------------------------------------------