@light-merlin-dark/tok
Version:
Fast token estimation and cost calculation for enterprise LLMs with CLI and MCP support
67 lines (66 loc) • 1.61 kB
JSON
{
"name": "@light-merlin-dark/tok",
"version": "0.1.2",
"description": "Fast token estimation and cost calculation for enterprise LLMs with CLI and MCP support",
"keywords": [
"token",
"estimator",
"llm",
"gpt",
"claude",
"cost",
"calculator",
"mcp",
"cli"
],
"author": "Light Merlin Dark <noreply@light-merlin-dark.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/light-merlin-dark/tok.git"
},
"bugs": {
"url": "https://github.com/light-merlin-dark/tok/issues"
},
"homepage": "https://github.com/light-merlin-dark/tok#readme",
"main": "dist/index.js",
"bin": {
"tok": "dist/cli/main.js",
"tok-mcp": "dist/mcp-server.js"
},
"files": [
"dist/",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"scripts": {
"build": "tsc",
"dev": "tsx src/cli/main.ts",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint src tests --ext .ts",
"lint:fix": "eslint src tests --ext .ts --fix",
"prepublishOnly": "npm run build && chmod +x dist/cli/main.js dist/mcp-server.js"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.1",
"chalk": "^5.3.0",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.57.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0",
"vitest": "^1.0.0"
},
"optionalDependencies": {
"@dqbd/tiktoken": "^1.0.0"
},
"engines": {
"node": ">=18.0.0"
}
}