1.0.1 • Published 2 years ago
@jswork/replace-host v1.0.1
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.
1.0.1
2 years ago