parse-db-url
parse database URLs into configuration objects
Last updated 5 years ago by grncdr .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parse-db-url 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.3.0                                ...           latest (5 years ago)

2 Versions

  • 2.3.0                                ...           5 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |