{
    "name": "openai-cost",
    "version": "1.0.32",
    "description": "OpenAI token usage cost calculator and fetch-based call tracker utilities.",
    "main": "./dist/index.js",
    "types": "./dist/index.d.ts",
    "exports": {
        ".": {
            "types": "./dist/index.d.ts",
            "require": "./dist/index.js",
            "default": "./dist/index.js"
        }
    },
    "bin": {
        "openai_cost_pp": "./dist/trackers/tracker_sqlite/bin/tracker_sqlite_pp.js"
    },
    "files": [
        "dist",
        "README.md"
    ],
    "engines": {
        "node": ">=18"
    },
    "repository": {
        "type": "git",
        "url": "git+https://github.com/jeromeetienne/openai-cost.git"
    },
    "bugs": {
        "url": "https://github.com/jeromeetienne/openai-cost/issues"
    },
    "homepage": "https://github.com/jeromeetienne/openai-cost#readme",
    "scripts": {
        "sample:comparator": "tsx examples/openai_cost_comparator.ts",
        "sample:basic": "tsx examples/openai_cost_example.ts",
        "sample:tracker_sqlite": "tsx examples/openai_cost_tracker_sqlite_example.ts",
        "sample:multi_provider": "tsx examples/openai_cost_multi_provider_example.ts",
        "openai_cost:watch": "tsx ./src/trackers/tracker_sqlite/bin/tracker_sqlite_pp.ts -i ./examples/.openai_cost_tracker.sqlite -w",
        "openai_cost:watch_multi_provider": "tsx ./src/trackers/tracker_sqlite/bin/tracker_sqlite_pp.ts -i ./examples/.openai_cost_tracker_multi_provider.sqlite -w",
        "openai_cache:clean": "rm -f ./examples/.openai_cache.sqlite",
        "openai_cost_tracker:clean": "rm -f ./examples/.openai_cost_tracker.sqlite ./examples/.openai_cost_tracker_multi_provider.sqlite",
        "clean:all": "npm run openai_cache:clean && npm run openai_cost_tracker:clean",
        "build": "tsc -p tsconfig.build.json",
        "build:watch": "tsc -p tsconfig.build.json --watch",
        "publish:all": "npm run build && npm version patch && npm publish --access public",
        "typecheck": "tsc --noEmit",
        "test": "tsx --test tests/**/*.test.ts"
    },
    "keywords": [
        "openai",
        "cost",
        "token-usage",
        "tracker"
    ],
    "author": "",
    "license": "MIT",
    "type": "commonjs",
    "sideEffects": false,
    "devDependencies": {
        "@keyv/sqlite": "^4.0.8",
        "@types/better-sqlite3": "^7.6.13",
        "@types/node": "^25.4.0",
        "tsx": "^4.21.0",
        "typescript": "^6.0.2"
    },
    "dependencies": {
        "better-sqlite3": "^12.8.0",
        "cacheable": "^2.3.4",
        "chalk": "^4.1.2",
        "commander": "^14.0.3",
        "minimatch": "^10.2.5",
        "openai": "^6.27.0",
        "openai-cache": "^1.0.35",
        "strip-ansi": "^6.0.1"
    }
}
