@gswl/hosts
v1.0.8
Published
parse and write hosts file on macos and windows.
Downloads
3
Readme
@gswl/hosts
parse and write hosts file on macos and windows.
import {parse,write} from "@gswl/hosts";
const hosts = parse();
console.log(hosts);
hosts.push({ip:"127.0.0.1",host:"www.a.com"});
write(hosts);