Skip to content

Commit

Permalink
Merge pull request joewalnes#396 from coderofsalvation/quickjs-example
Browse files Browse the repository at this point in the history
added quickjs example
  • Loading branch information
asergeyev committed Apr 12, 2021
2 parents 937c4c1 + e31b3b9 commit c91a1dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/qjs/request-reply.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env -S qjs --module
import * as std from "std";

let line;
while ((line = std.in.getline()) != null) {
console.log("RCVD: " + line)
std.out.flush();
}

0 comments on commit c91a1dd

Please sign in to comment.