mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
- Remove C emission, debugging options, and automatic backend fallback. - Complete LLVM lowering and native bootstrap coverage across supported targets. - Link executables and libraries with precompiled C runtime packs, including iOS and Android.
11 lines
382 B
TypeScript
11 lines
382 B
TypeScript
import { createServer, Server } from "node:net";
|
|
|
|
function serverPresent(server: Server | null): boolean {
|
|
return !!server;
|
|
}
|
|
|
|
const server = createServer(() => {});
|
|
console.log("streams", !!process.stdin, !!process.stdout, !!process.stderr);
|
|
console.log("input", process.stdin ? "present" : "absent");
|
|
console.log("server", serverPresent(server), serverPresent(null), !!server);
|