stevenmiller888 / ts-mysql-uri

Parse a MySQL connection URI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ts-mysql-uri

Alt Text

Parse a MySQL connection URI.

Alt Text

Installation

yarn add ts-mysql-uri
# or
npm install ts-mysql-uri

Usage

import { parse } from 'ts-mysql-uri'

const config = parse('mysql://root@127.0.0.1:3306/foo')
console.log(config) // { scheme: 'mysql', username: 'root', host: '127.0.0.1', port: '3306', schema: 'foo' }

Related

License

MIT


stevenmiller888.github.io  ·  GitHub @stevenmiller888  ·  Twitter @stevenmiller888

About

Parse a MySQL connection URI.


Languages

Language:TypeScript 100.0%