@imjano/hostman_cli
Version:
This is a CLI (Command Line Interface) for managing the hosts file located at C:WindowsSystem32driversetc.
13 lines (12 loc) • 425 B
JavaScript
const hostsFullPath = 'C:/Windows/System32/drivers/etc/hosts'
const hostmanPath = process.env.HOME || process.env.USERPROFILE
const hostmanDirName = '.imjano-hostman-cli'
const hostmanFullPath = `${hostmanPath}/${hostmanDirName}`.replace(/\\/g, '/')
const hostmanBackupsPath = `${hostmanFullPath}/backups`
module.exports = {
hostsFullPath,
hostmanPath,
hostmanDirName,
hostmanFullPath,
hostmanBackupsPath,
}