{
  "name": "textrank4zh-ts",
  "version": "0.4.0",
  "description": "适用于中文文本关键词提取和摘要生成的 TextRank 算法 TypeScript 实现（兼容浏览器）",
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "import": "./dist/index.mjs",
      "require": "./dist/index.cjs",
      "types": "./dist/index.d.ts"
    }
  },
  "files": [
    "dist",
    "data",
    "THIRD-PARTY-NOTICES.md"
  ],
  "scripts": {
    "build": "vite build && vite build --mode worker && vite build --mode sharedworker && pnpm run build:dts-compat",
    "build:dts-compat": "cp dist/index.d.ts dist/index.d.cts && cp dist/index.d.ts dist/index.d.mts",
    "dev": "vite build --watch",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:ui": "vitest --ui",
    "test:coverage": "vitest run --coverage",
    "test:browser": "npm run build && npm run serve",
    "typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
    "typecheck:src": "tsc --noEmit",
    "typecheck:test": "tsc -p tsconfig.test.json",
    "lint": "oxlint src tests",
    "lint:fix": "oxlint --fix src tests",
    "format": "oxfmt src tests",
    "format:check": "oxfmt --check src tests",
    "clean": "rm -rf dist",
    "prepublishOnly": "npm run clean && npm run build && npm run test",
    "serve": "python3 -m http.server 8000 -d examples/browser || python -m SimpleHTTPServer 8000",
    "release": "release-it",
    "release:dry": "release-it --dry-run",
    "release:patch": "release-it patch",
    "release:minor": "release-it minor",
    "release:major": "release-it major"
  },
  "keywords": [
    "textrank",
    "chinese",
    "nlp",
    "keyword-extraction",
    "text-summarization",
    "pagerank",
    "typescript",
    "browser",
    "segmentation"
  ],
  "author": "ChasLui <chaslui@outlook.com>",
  "license": "MIT",
  "devDependencies": {
    "@microsoft/api-extractor": "^7.59.0",
    "@release-it/conventional-changelog": "^10.0.1",
    "@types/node": "^24.3.1",
    "@typescript/typescript6": "^6.0.2",
    "@vitest/coverage-v8": "^4.1.11",
    "@vitest/ui": "^4.1.11",
    "oxfmt": "^0.65.0",
    "oxlint": "^1.80.0",
    "release-it": "^19.0.4",
    "typescript": "^7.0.2",
    "unplugin-dts": "^1.0.3",
    "vite": "^8.2.2",
    "vitest": "^4.1.11"
  },
  "engines": {
    "node": "^20.19.0 || >=22.12.0"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/ChasLui/textrank4zh-ts.git"
  },
  "bugs": {
    "url": "https://github.com/ChasLui/textrank4zh-ts/issues"
  },
  "homepage": "https://github.com/ChasLui/textrank4zh-ts#readme",
  "sideEffects": false,
  "packageManager": "pnpm@11.24.0",
  "volta": {
    "node": "24.20.0",
    "pnpm": "11.24.0"
  }
}
