apeman-brws-urldeprecated

Url resolver for browser.

Usage no npm install needed!

<script type="module">
  import apemanBrwsUrl from 'https://cdn.skypack.dev/apeman-brws-url';
</script>

README

apeman-brws-url

Build Status Code Climate Code Coverage npm Version JS Standard

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.

Links