Files
SkyArtShop/variant-api/node_modules/pgpass/lib/index.js
Kristen Hercules 4a8efe17bb Add product variants API, deployment scripts, and documentation
- Add Node.js variant-api server with PostgreSQL integration
- Add new utility scripts for system verification and website status
- Update CI/CD workflow configuration
- Add color variant solution documentation
- Add product variants JavaScript support
- Update gitignore for new build artifacts
2025-12-12 22:40:46 -06:00

24 lines
467 B
JavaScript

'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;