@jswork/replace-host
v1.0.1
Published
Replace host to the other.
Downloads
15
Readme
replace-host
Replace host to the other.
installation
npm install @jswork/replace-host
usage
import replaceHost from '@jswork/replace-host';
const url1 = 'https://aot-report-h5.dev.com/offline_asc_mobile?task_id=16807';
const url2 = 'https://sandbox-aot-report-h5.dev.com';
replaceHost(url1, url2);
// https://sandbox-aot-report-h5.dev.com/offline_asc_mobile?task_id=16807
license
Code released under the MIT license.