UNPKG

560 BMarkdownView Raw
1pg-connection-string
2====================
3
4[![Build Status](https://travis-ci.org/iceddev/pg-connection-string.svg?branch=master)](https://travis-ci.org/iceddev/pg-connection-string)
5
6Functions for dealing with a PostgresSQL connection string
7
8`parse` method taken from [node-postgres](https://github.com/brianc/node-postgres.git)
9Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)
10MIT License
11
12## Usage
13
14```js
15var parse = require('pg-connection-string').parse;
16
17var config = parse('postgres://someuser:somepassword@somehost:381/sometable')
18```