{
  "name": "js-rouge",
  "version": "3.2.0",
  "description": "Recall-Oriented Understudy for Gisting Evaluation (ROUGE) Evaluation Functions with TypeScript support",
  "main": "dist/rouge.js",
  "module": "dist/rouge.mjs",
  "types": "dist/rouge.d.ts",
  "exports": {
    ".": {
      "types": "./dist/rouge.d.ts",
      "import": "./dist/rouge.mjs",
      "require": "./dist/rouge.js"
    }
  },
  "scripts": {
    "test": "jest",
    "build": "npm run clean && npm run build:js && npm run build:types",
    "build:js": "esbuild src/rouge.ts --bundle --minify --sourcemap --platform=node --target=node18 --outfile=dist/rouge.js && esbuild src/rouge.ts --bundle --minify --sourcemap --platform=neutral --format=esm --outfile=dist/rouge.mjs",
    "build:types": "tsc -p tsconfig.json --emitDeclarationOnly --outDir dist",
    "clean": "rimraf dist",
    "type-check": "tsc --noEmit",
    "lint": "biome lint .",
    "format": "biome format --write . && prettier --write \"**/*.md\"",
    "check": "biome check --write . && prettier --write \"**/*.md\"",
    "prepublishOnly": "npm run build",
    "prepare": "husky"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/promptfoo/js-rouge.git"
  },
  "keywords": [
    "ROUGE",
    "Auto-summarization",
    "NLP",
    "TypeScript"
  ],
  "author": "Lim Mingje, Kenneth <me@kenlimmj.com> (https://kenlimmj.com)",
  "contributors": [
    "promptfoo (https://promptfoo.dev)"
  ],
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/promptfoo/js-rouge/issues"
  },
  "homepage": "https://github.com/promptfoo/js-rouge",
  "devDependencies": {
    "@biomejs/biome": "2.3.11",
    "@swc/core": "^1.15.5",
    "@swc/jest": "^0.2.39",
    "@types/jest": "^30.0.0",
    "esbuild": "^0.27.2",
    "husky": "^9.1.7",
    "jest": "^30.2.0",
    "lint-staged": "^16.2.7",
    "prettier": "3.7.4",
    "rimraf": "^6.1.2",
    "typescript": "^5.9.3"
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "files": [
    "dist",
    "README.md",
    "LICENSE"
  ],
  "directories": {
    "lib": "dist",
    "test": "test"
  },
  "lint-staged": {
    "*.md": [
      "prettier --write"
    ],
    "!(*.md)": [
      "biome check --write --no-errors-on-unmatched"
    ]
  }
}
