#!/usr/bin/env node

var envify = require('../')
  , fs = require('fs')

if (process.argv[2]) {
  fs.createReadStream(process.argv[2], { encoding: 'utf8' })
    .pipe(envify(process.argv[2]))
    .pipe(process.stdout)
} else {
  process.stdin.resume()
  process.stdin
    .pipe(envify(__filename))
    .pipe(process.stdout)
}


