UNPKG

@milkmaccya2/hostswitch

Version:

A simple CLI tool to manage and switch between multiple hosts file profiles for different development environments

79 lines (78 loc) 2.07 kB
{ "name": "@milkmaccya2/hostswitch", "version": "1.2.9", "description": "A simple CLI tool to manage and switch between multiple hosts file profiles for different development environments", "main": "dist/hostswitch.js", "bin": { "hostswitch": "./dist/hostswitch.js" }, "files": [ "dist/**/*.js", "dist/**/*.d.ts", "!dist/**/*.d.ts.map", "!dist/__mocks__/**", "LICENSE", "README.md", "README.ja.md" ], "scripts": { "build": "tsc", "postbuild": "chmod +x dist/hostswitch.js", "build:watch": "tsc --watch", "start": "node dist/hostswitch.js", "dev": "ts-node src/hostswitch.ts", "clean": "rm -rf dist", "prebuild": "npm run clean", "prepublishOnly": "npm run build", "test": "vitest", "test:run": "vitest run", "test:ui": "vitest --ui", "test:coverage": "vitest run --coverage", "lint": "biome check src", "lint:fix": "biome check --write src", "format": "biome format --write src", "format:check": "biome format src", "check": "npm run lint && npm run format:check && npm run test:run" }, "keywords": [ "hosts", "switch", "cli", "hosts-file", "profile", "network" ], "author": "milkmaccya2", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/milkmaccya2/hostswitch.git" }, "bugs": { "url": "https://github.com/milkmaccya2/hostswitch/issues" }, "homepage": "https://github.com/milkmaccya2/hostswitch#readme", "engines": { "node": ">=20.0.0" }, "preferGlobal": true, "dependencies": { "chalk": "^4.1.2", "commander": "^11.1.0", "fs-extra": "^11.2.0", "inquirer": "8.2.6", "update-notifier": "^7.3.1" }, "devDependencies": { "@biomejs/biome": "^2.1.2", "@types/fs-extra": "^11.0.4", "@types/inquirer": "8.2.11", "@types/node": "^24.0.15", "@types/update-notifier": "^6.0.8", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "ts-node": "^10.9.2", "typescript": "^5.8.3", "vitest": "^3.2.4" } }