README
apeman-brws-url
Url resolver for browser.
Installation
$ npm install apeman-brws-url --save
Usage
'use strict'
const { convertHostname } = require('apeman-brws-url')
// Convert host name by rule.
let url01 = convertHostname('http://localhost:300/foo', {
localhost: '127.0.0.1'
})
Bundle
Use browserify to bundle as client side script.
$ browserify main.js -o bundle.js
License
This software is released under the MIT License.