Package Exports
- proxy-string-parser
- proxy-string-parser/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (proxy-string-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
proxy-string-parser
Converting strings of the following formats:
- protocol://username:password@host:port
- protocol://host:port
- username:password@host:port
- host:port
To the AxiosProxyConfig object:
interface AxiosProxyConfig {
host: string
port: number
auth?: {
username: string
password: string
}
protocol?: strings
}Install
npm install proxy-string-parserUsage
import proxyParser from 'proxy-string-parser'
const proxy = proxyParser('protocol://username:password@host:80')
console.log(proxy)