A small TypeScript library for parsing MS SQL Server connection strings into configuration objects compatible with knex. At version 0.3.2, it extracts host, port, database, user, and password from standard connection strings. Differentiators: built-in support for handling email-like User IDs (extracts login), optional protocol and port in Data Source, and ESM + CJS exports. The library is stable but has low activity and no recent updates. Works in Node.js environments.
npm install mssql-connection-stringNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a typical MS SQL Server connection string and outputs configuration for knex.
Ensure the connection string follows standard MS SQL format before parsing.
If encryption is not desired, override the 'options.encrypt' field after parsing.
Provide a non-email User Id or modify the library source if full email is required.
Consider alternatives like tedious or mssql for active support.
const parse = require('mssql-connection-string');npm install mssql-connection-string and ensure tsconfig includes node_modules.
No dependency data recorded yet.