Sha256: df5d3ba3c418adffb3bd76f4a7a46752ea9cd8717dbace1f56b89263fc66ceef
Contents?: true
Size: 478 Bytes
Versions: 5
Compression:
Stored size: 478 Bytes
Contents
// A simple fallback when no netcat-compatible adapter is found on the system. // On average, this is 2-3x slower than netcat, but still much faster than // spawning a new Ruby process. const { createConnection } = require("net"); const sock = process.argv[process.argv.length - 1]; const client = createConnection(sock, () => process.stdin.pipe(client)); client.on("data", (data) => process.stdout.write(data)); client.on("error", (error) => { console.error(error); });
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
prettier-1.5.3 | src/parser/netcat.js |
prettier-1.5.2 | src/parser/netcat.js |
prettier-1.5.1 | src/parser/netcat.js |
prettier-1.5.0 | src/parser/netcat.js |
prettier-1.4.0 | src/parser/netcat.js |