get-hosts-cli

1.0.1 • Public • Published

get-hosts

etc/hosts as an array of arrays, on the CLI.

Build Status

js-semistandard-style

get-hosts --pretty

screenshot

CLI

$ npm install --global get-hosts-cli
$ get-hosts --help

  `etc/hosts` as an array of arrays, on the CLI.

  Usage
    $ get-hosts [--pretty]

  Examples
    $ get-hosts
    [ [ '127.0.0.1', 'localhost' ],
    [ '::1', 'ip6-localhost ip6-loopback' ],
    [ 'fe00::0', 'ip6-localnet' ],
    [ 'ff00::0', 'ip6-mcastprefix' ],
    [ 'ff02::1', 'ip6-allnodes' ],
    [ 'ff02::2', 'ip6-allrouters' ] ]

  Options
    -p, --pretty  Show as a table. Default: false

License

MIT © Siddharth Kannan

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    4
  • 1.0.0
    2

Package Sidebar

Install

npm i get-hosts-cli

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • icyflame