Mercurial
comparison third_party/bun/node_modules/loose-envify/cli.js @ 12:de54585a40f1
Adding bun and node modules.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 02 Oct 2025 14:39:48 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 11:f33d9ff8b6e8 | 12:de54585a40f1 |
|---|---|
| 1 #!/usr/bin/env node | |
| 2 'use strict'; | |
| 3 | |
| 4 var looseEnvify = require('./'); | |
| 5 var fs = require('fs'); | |
| 6 | |
| 7 if (process.argv[2]) { | |
| 8 fs.createReadStream(process.argv[2], {encoding: 'utf8'}) | |
| 9 .pipe(looseEnvify(process.argv[2])) | |
| 10 .pipe(process.stdout); | |
| 11 } else { | |
| 12 process.stdin.resume() | |
| 13 process.stdin | |
| 14 .pipe(looseEnvify(__filename)) | |
| 15 .pipe(process.stdout); | |
| 16 } |