mirror of
https://dev.azure.com/tstanciu94/PhantomMind/_git/Bitip
synced 2025-10-13 01:52:19 +03:00
feat: Implement BitipClient for GeoIP service integration - Add BitipClient class for interacting with the Bitip GeoIP Service. - Implement methods for health check, version info, IP location lookup, detailed IP location, and batch IP lookup. - Introduce validation for IP addresses with IpValidator utility. - Normalize URLs with UrlNormalizer utility. - Create constants for API keys and routes. - Add TypeScript types for client options, responses, and errors. - Set up ESLint and Prettier configurations for code quality. - Add unit tests for BitipClient and IpValidator. - Configure TypeScript and build settings with tsup. - Set up Vitest for testing framework and coverage reporting.
52 lines
1.8 KiB
JSON
52 lines
1.8 KiB
JSON
{
|
|
"name": "bitip",
|
|
"version": "1.1.3",
|
|
"description": "Bitip - GeoIP Lookup Service with REST API and Web Interface",
|
|
"type": "module",
|
|
"main": "dist/backend/index.js",
|
|
"scripts": {
|
|
"dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"",
|
|
"dev:debug": "concurrently \"npm run dev:backend:debug\" \"npm run dev:frontend\"",
|
|
"dev:backend": "cd src/backend && npm run dev",
|
|
"dev:backend:debug": "cd src/backend && npm run dev:debug",
|
|
"dev:frontend": "cd src/frontend && npm run dev",
|
|
"build": "npm run build:backend && npm run build:frontend",
|
|
"build:backend": "cd src/backend && npm run build",
|
|
"build:frontend": "cd src/frontend && npm run build",
|
|
"start": "cd src/backend && npm start",
|
|
"lint": "npm run lint:backend && npm run lint:frontend",
|
|
"lint:backend": "cd src/backend && npm run lint",
|
|
"lint:frontend": "cd src/frontend && npm run lint",
|
|
"lint:fix": "npm run lint:fix:backend && npm run lint:fix:frontend",
|
|
"lint:fix:backend": "cd src/backend && npm run lint:fix",
|
|
"lint:fix:frontend": "cd src/frontend && npm run lint:fix",
|
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
"install:all": "npm install && cd src/backend && npm install && cd ../frontend && npm install",
|
|
"clean": "rimraf dist && cd src/backend && npm run clean && cd ../frontend && npm run clean"
|
|
},
|
|
"keywords": [
|
|
"geoip",
|
|
"ip-lookup",
|
|
"geolocation",
|
|
"maxmind",
|
|
"express",
|
|
"react",
|
|
"typescript"
|
|
],
|
|
"author": "Bitip Team",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"concurrently": "^9.2.1",
|
|
"prettier": "^3.4.2",
|
|
"rimraf": "^6.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0",
|
|
"npm": ">=9.0.0"
|
|
},
|
|
"workspaces": [
|
|
"src/backend",
|
|
"src/frontend"
|
|
]
|
|
}
|