Mercurial
view third_party/bun/node_modules/loose-envify/cli.js @ 33:c0f6c8c7829f
[Seobeo] Linux epoll. Set the client socket to be nonblocking so that it doesn't stop loading when two different threads handle different client calls. I might have problem with socket not being cleaned up properly so need to check that.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 10 Oct 2025 06:59:32 -0700 |
| parents | de54585a40f1 |
| children |
line wrap: on
line source
#!/usr/bin/env node 'use strict'; var looseEnvify = require('./'); var fs = require('fs'); if (process.argv[2]) { fs.createReadStream(process.argv[2], {encoding: 'utf8'}) .pipe(looseEnvify(process.argv[2])) .pipe(process.stdout); } else { process.stdin.resume() process.stdin .pipe(looseEnvify(__filename)) .pipe(process.stdout); }