parse-db-url

2.3.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.3.0
    298
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.3.0
    298
  • 0.0.0
    813

Package Sidebar

Install

npm i parse-db-url

Weekly Downloads

1,111

Version

2.3.0

License

BSD-2-Clause

Unpacked Size

2.73 kB

Total Files

4

Last publish

Collaborators

  • grncdr