0.0.2 • Published 4 years ago

ts-mysql-uri v0.0.2

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

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