{
  "name": "shave",
  "version": "5.2.0",
  "description": "Shave is a javascript plugin that truncates multi-line text within a html element based on set max height",
  "main": "dist/shave.cjs",
  "module": "dist/shave.mjs",
  "type": "module",
  "unpkg": "dist/shave.global.js",
  "packageManager": "pnpm@12.3.4",
  "devEngines": {
    "runtime": {
      "name": "node",
      "version": "^22.12.0 || ^24.0.0 || >=26.0.0",
      "onFail": "warn"
    },
    "packageManager": {
      "name": "pnpm",
      "version": ">=12.0.0",
      "onFail": "warn"
    }
  },
  "files": [
    "dist",
    "src",
    "types"
  ],
  "types": "dist/shave.d.ts",
  "exports": {
    ".": {
      "types": "./dist/shave.d.ts",
      "import": "./dist/shave.mjs",
      "require": "./dist/shave.cjs",
      "default": "./dist/shave.mjs"
    },
    "./dist/*": "./dist/*",
    "./src/*": "./src/*"
  },
  "scripts": {
    "build": "pnpm clean && pnpm build:dist && pnpm build:types",
    "build:dist": "vite build --config scripts/vite.config.ts --mode shave && vite build --config scripts/vite.config.ts --mode jquery",
    "build:types": "tsc",
    "clean": "rm -rf dist types",
    "deps:check": "codependence --dryRun && pastoralist doctor",
    "deps:update": "codependence --update",
    "format": "oxfmt --write .",
    "format:check": "oxfmt --check .",
    "lint": "oxlint .",
    "lint:fix": "oxlint --fix .",
    "pre-commit": "pnpm run build && pnpm run test && pnpm run test:size && pnpm run lint && pnpm run format:check",
    "prepare": "bash scripts/setup.sh --hooks-only",
    "prepublishOnly": "pnpm build && pnpm run test && pnpm run test:size",
    "setup": "bash scripts/setup.sh",
    "test": "pnpm run test:unit && pnpm run test:e2e && pnpm run test:imports",
    "test:unit": "vitest run --config scripts/vitest.config.ts",
    "test:unit:coverage": "vitest run --config scripts/vitest.config.ts --coverage",
    "test:unit:watch": "vitest --config scripts/vitest.config.ts",
    "test:unit:ui": "vitest --config scripts/vitest.config.ts --ui",
    "test:e2e": "pnpm run test:e2e:install && playwright test --config scripts/playwright.config.ts",
    "test:e2e:install": "playwright install chromium firefox webkit",
    "test:e2e:ui": "pnpm run test:e2e:install && playwright test --config scripts/playwright.config.ts --ui",
    "test:es-check": "es-check es2015 dist/shave.global.js dist/jquery.shave.global.js",
    "test:perf": "node tests/performance/perf-node.test.js",
    "test:imports": "pnpm run test:imports:esm && pnpm run test:imports:cjs && pnpm run test:imports:iife",
    "test:imports:esm": "node tests/imports/test-esm.mjs",
    "test:imports:cjs": "node tests/imports/test-cjs.cjs",
    "test:imports:iife": "node tests/imports/test-iife.cjs",
    "test:size": "node scripts/check-dist-size.mjs",
    "release": "release-it"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/yowainwright/shave.git"
  },
  "keywords": [
    "ellipsis",
    "truncate",
    "truncation",
    "truncated",
    "semantic",
    "js",
    "content",
    "shorten",
    "javascript",
    "text",
    "shave",
    "trim"
  ],
  "author": "Jeff Wainwright <yowainwright@gmail.com> (jeffry.in)",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/yowainwright/shave/issues"
  },
  "homepage": "https://github.com/yowainwright/shave#readme",
  "devDependencies": {
    "@playwright/test": "^1.63.0",
    "@types/jquery": "^4.0.1",
    "@types/node": "^26.5.1",
    "@types/zepto": "^1.0.36",
    "@vitest/coverage-v8": "^5.0.0",
    "@vitest/ui": "^5.0.0",
    "codependence": "^1.0.15",
    "es-check": "9.7.1",
    "happy-dom": "^20.14.5",
    "jquery": "^4.0.0",
    "oxfmt": "^0.67.0",
    "oxlint": "^1.82.0",
    "pastoralist": "^1.13.2",
    "release-it": "^21.0.2",
    "typescript": "^7.0.2",
    "vite": "^8.3.0",
    "vitest": "^5.0.0"
  },
  "codependence": {
    "lockfile": true,
    "mode": "precise"
  },
  "pastoralist": {
    "appendix": {
      "ip-address@10.3.1": {
        "dependents": {
          "shave": "ip-address (required by socks)"
        },
        "ledger": {
          "addedDate": "2026-08-11T08:35:35.242Z"
        }
      },
      "picomatch@^2.0.0@2.3.2": {
        "dependents": {
          "shave": "picomatch@^2.0.0 (required by micromatch, tinyglobby, vite)"
        },
        "ledger": {
          "addedDate": "2026-08-11T08:35:35.242Z"
        }
      },
      "picomatch@^4.0.0@4.0.4": {
        "dependents": {
          "shave": "picomatch@^4.0.0 (required by micromatch, tinyglobby, vite)"
        },
        "ledger": {
          "addedDate": "2026-08-11T08:35:35.242Z"
        }
      }
    }
  },
  "release-it": {
    "git": {
      "commitMessage": "chore: release-it commit"
    }
  }
}
