ts-mysql-uri
v0.0.2
Published
Parse a MySQL connection URI.
Downloads
909
Maintainers
Readme
ts-mysql-uri
Parse a MySQL connection URI.
Installation
yarn add ts-mysql-uri
# or
npm install ts-mysql-uri
Usage
import { parse } from 'ts-mysql-uri'
const config = parse('mysql://[email protected]:3306/foo')
console.log(config) // { scheme: 'mysql', username: 'root', host: '127.0.0.1', port: '3306', schema: 'foo' }
Related
- ts-mysql-parser - A standalone, grammar-complete MySQL parser
- ts-antlr4-scanner - A scanner for antlr4-based lexers
License
stevenmiller888.github.io · GitHub @stevenmiller888 · Twitter @stevenmiller888