@nestjs-mod/docker-compose
Version:
Docker Compose is a tool for defining and running multi-container applications. It is the key to unlocking a streamlined and efficient development and deployment experience. (Generator docker-compose.yml for https://docs.docker.com/compose)
13 lines • 504 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.redisUrlParse = redisUrlParse;
function redisUrlParse(url) {
const parsedURL = new URL(url);
return {
host: parsedURL.hostname || 'localhost',
port: Number(parsedURL.port || 6379),
database: (parsedURL.pathname || '/0').substr(1) || '0',
password: parsedURL.password ? decodeURIComponent(parsedURL.password) : null,
};
}
//# sourceMappingURL=docker-compose-redis.utils.js.map
;