main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100755
|
File size:
356 bytes
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.