PHP 8.2.30
Preview: index.js Size: 467 B
/home/byroehnu/easepay.easetack.com/node_modules/pgpass/lib/index.js

'use strict';

var path = require('path')
  , fs = require('fs')
  , helper = require('./helper.js')
;


module.exports = function(connInfo, cb) {
    var file = helper.getFileName();
    
    fs.stat(file, function(err, stat){
        if (err || !helper.usePgPass(stat, file)) {
            return cb(undefined);
        }

        var st = fs.createReadStream(file);

        helper.getPassword(connInfo, st, cb);
    });
};

module.exports.warnTo = helper.warnTo;

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:21
Edit Download
5.36 KB lrw-r--r-- 2026-02-03 15:06:12
Edit Download
467 B lrw-r--r-- 2026-02-03 15:06:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).