Skip to content

grncdr/parse-db-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

parse-db-url

API

module.exports := (String) => {
    adapter:  String,
    host:     String?,
    port:     String?,
    database: String?,
    user:     String?,
    password: String?
}

Turn a string database URL into an object. This differs from a plain require('url').parse(...) in that it understands some conventions around different database drivers and query-string parameters can override those found earlier in the URL. (e.g. user=foo in the query string overrides a bar@host in the URL.

License

2-clause BSD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published