New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

parse-db-url

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-db-url

parse database URLs into configuration objects

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
decreased by-10.42%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 22 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc