UNPKG

hosts-path

Version:

Get the path to the hosts file

26 lines (14 loc) 375 B
# hosts-path [![Build Status](https://travis-ci.org/kevva/hosts-path.svg?branch=master)](https://travis-ci.org/kevva/hosts-path) > Get the path to the hosts file ## Install ``` $ npm install --save hosts-path ``` ## Usage ```js var hostsPath = require('hosts-path'); hostsPath(); //=> '/etc/hosts' ``` ## License MIT © [Kevin Martensson](http://github.com/kevva)