{
  "name": "ai-token-estimator",
  "version": "1.7.1",
  "description": "Estimate and count tokens (incl. exact OpenAI BPE) and input costs for LLM API calls",
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.ts",
        "default": "./dist/index.js"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    }
  },
  "publishConfig": {
    "access": "public"
  },
  "files": [
    "dist",
    "LICENSE",
    "README.md"
  ],
  "dependencies": {},
  "scripts": {
    "build": "tsup src/index.ts --format cjs,esm --dts",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:dist": "node scripts/test-dist.mjs",
    "lint": "eslint src tests",
    "verify:hashes": "tsx scripts/verify-hashes.ts",
    "prepublishOnly": "npm run lint && npm run test && npm run build && npm run test:dist && npm run verify:hashes",
    "update-pricing": "tsx scripts/update-pricing.ts",
    "benchmark:tokenizer": "tsx benchmark/tokenizer.ts"
  },
  "keywords": [
    "llm",
    "tokenizer",
    "token-count",
    "token-counter",
    "tokens",
    "estimator",
    "cost-estimator",
    "tiktoken",
    "bpe",
    "openai",
    "anthropic",
    "claude",
    "gpt",
    "cost"
  ],
  "author": "BitsAndBytesAI",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/BitsAndBytesAI/ai-token-estimator.git"
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "devDependencies": {
    "@changesets/cli": "^2.29.8",
    "@mendable/firecrawl-js": "^1.19.0",
    "@typescript-eslint/eslint-plugin": "^8.50.1",
    "@typescript-eslint/parser": "^8.50.1",
    "eslint": "^9.39.2",
    "tsup": "^8.5.1",
    "tsx": "^4.19.2",
    "typescript": "^5.9.3",
    "vitest": "^4.0.16"
  }
}
