UNPKG

ai-meter

Version:

A javascript library designed to estimate AI models tokens and its API costs.

68 lines (67 loc) 1.79 kB
{ "name": "ai-meter", "version": "0.0.1", "description": "A javascript library designed to estimate AI models tokens and its API costs.", "keywords": [ "ai", "tokens", "tokenizer", "cost-estimation", "openai", "llm", "language-model", "api-costs", "tiktoken" ], "main": "dist/index.js", "types": "dist/index.d.ts", "browser": "dist/index.js", "exports": { ".": { "import": "./dist/index.js", "browser": "./dist/index.js" } }, "type": "module", "scripts": { "test": "vitest", "test:coverage": "vitest run --coverage", "test:ui": "vitest --ui", "dev": "rollup -c --watch", "build": "rollup -c rollup.config.mjs", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "format": "prettier --write \"**/*.{ts,js,json,md}\"", "format:check": "prettier --check \"**/*.{ts,js,json,md}\"" }, "author": "vistaplatforms", "license": "ISC", "devDependencies": { "@rollup/plugin-alias": "^5.1.1", "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.2", "@types/node": "^22.15.29", "eslint": "^9.22.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-prettier": "^5.2.3", "prettier": "^3.5.3", "rollup": "^4.32.1", "typescript": "^5.8.3", "vitest": "^3.0.9" }, "dependencies": { "axios": "^1.9.0", "js-tiktoken": "^1.0.20", "tslib": "^2.8.1" }, "repository": { "type": "git", "url": "https://github.com/vistaplatforms/ai-meter.git" }, "bugs": { "url": "https://github.com/vistaplatforms/ai-meter/issues" }, "homepage": "https://github.com/vistaplatforms/ai-meter#readme" }