README
hosts-path
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
Get the path to the hosts file
<script type="module">
import hostsPath from 'https://cdn.skypack.dev/hosts-path';
</script>
Get the path to the hosts file
$ npm install --save hosts-path
var hostsPath = require('hosts-path');
hostsPath();
//=> '/etc/hosts'
MIT © Kevin Martensson