1.0.1 • Published 2 years ago

@jswork/replace-host v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

replace-host

Replace host to the other.

version license size download

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.