0.0.1 • Published 4 years ago

@jaocer/hoster v0.0.1

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

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)