@jaocer/hoster
v0.0.1
Published
update hosts on linux、macos、windows
Downloads
8
Readme
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)