1.0.2 • Published 4 years ago
@x12/hosts v1.0.2
@x12/hosts
Minimum viable sdk for all your projects.
Install
npm install --save @x12/hosts
# or
yarn add @x12/hosts
Usage
import '@x12/hosts';
hosts.add(ip, domain).then();
hosts.get().then();
/*
[
["127.0.0.1", "localhost"],
["::1", "localhost"]
]
*/
hosts.remove(domain).then();
LICENSE
Apache-2.0