Parse Connection Url
A Nodejs module that allows you to parse connection strings/objects in a consistent way.
Table of Contents
Documentation
Click on the following link to go to the full documentation.
Documentation
Installation
npm i -S parse-connection-url
Usage
const Connection = require('parse-connection-url')
const httpConn = new Connection('http://admin:admin@localhost:8443/some/path')
console.log(httpConn)
console.log(httpConn.toUrl())
const knexPostgresConn = new Connection('postgres://admin:admin@localhost:5432/generic_database')
console.log(knexPostgresConn)
console.log(knexPostgresConn.toKnexConnection())
Support
Please open an issue for support.
Contributing