
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
parse-connection-url
Advanced tools
A Nodejs module that allows you to parse connection strings/objects in a consistent way.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
A Nodejs module that allows you to parse connection strings/objects in a consistent way.
Click on the following link to go to the full documentation. Documentation
npm i -S parse-connection-url
const Connection = require('parse-connection-url')
const httpConn = new Connection('http://admin:admin@localhost:8443/some/path')
console.log(httpConn)
// {
// connection:
// { secure: false,
// protocol: 'http',
// port: 8443,
// path: '/some/pathn',
// hostname: 'localhost' },
// auth: { username: 'admin', password: 'admin' } }
console.log(httpConn.toUrl())
// "http://admin:admin@localhost:8443/some/path"
const knexPostgresConn = new Connection('postgres://admin:admin@localhost:5432/generic_database')
console.log(knexPostgresConn)
// {
// connection:
// { secure: false,
// protocol: 'postgres',
// port: 5432,
// path: '/generic_database',
// hostname: 'localhost' },
// auth: { username: 'admin', password: 'admin' } }
console.log(knexPostgresConn.toKnexConnection())
// { host: 'localhost',
// user: 'admin',
// password: 'admin',
// port: 5432,
// database: 'generic_database' }
Please open an issue for support.
FAQs
A Nodejs module that allows you to parse connection strings/objects in a consistent way.
The npm package parse-connection-url receives a total of 1 weekly downloads. As such, parse-connection-url popularity was classified as not popular.
We found that parse-connection-url demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.