hosts-path

Get the path to the hosts file

Usage no npm install needed!

<script type="module">
  import hostsPath from 'https://cdn.skypack.dev/hosts-path';
</script>

README

hosts-path Build Status

Get the path to the hosts file

Install

$ npm install --save hosts-path

Usage

var hostsPath = require('hosts-path');

hostsPath();
//=> '/etc/hosts'

License

MIT © Kevin Martensson