Install
npm install @utils/hoster
Usage
use config like this
const config = {
"127.0.0.1": [
"localhost",
"www.google.com"
],
"127.0.0.2":[
"www.youtube.com"
]
}
and you can set
hoster(config,callback)
// it is same
hoster(config, true, callback)
or unset domain
hoster(config, false, callback)