@x12/hosts
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@x12/hosts

Minimum viable sdk for all your projects.

github npm npm npm

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

Readme

Keywords

none

Package Sidebar

Install

npm i @x12/hosts

Weekly Downloads

0

Version

1.0.2

License

Apache-2.0

Unpacked Size

92.5 kB

Total Files

16

Last publish

Collaborators

  • willin