{
  "name": "@stll/aho-corasick",
  "version": "1.0.4",
  "description": "Exact many-pattern string search for Node.js and Bun via Rust's aho-corasick engine exposed through NAPI-RS.",
  "keywords": [
    "aho-corasick",
    "multi-pattern",
    "napi-rs",
    "native",
    "rust",
    "string-search"
  ],
  "homepage": "https://github.com/stella/aho-corasick#readme",
  "bugs": {
    "url": "https://github.com/stella/aho-corasick/issues"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/stella/aho-corasick.git"
  },
  "files": [
    "dist",
    "index.cjs"
  ],
  "type": "module",
  "module": "dist/index.mjs",
  "types": "dist/index.d.mts",
  "exports": {
    ".": {
      "types": "./dist/index.d.mts",
      "import": "./dist/index.mjs",
      "default": "./dist/index.mjs"
    }
  },
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "fix:loader": "node scripts/fix-napi-loader.mjs",
    "build": "node scripts/build-native.mjs --platform --release",
    "build:debug": "node scripts/build-native.mjs --platform",
    "build:wasm": "node scripts/build-native.mjs --platform --target wasm32-wasip1-threads --release",
    "artifacts": "napi artifacts",
    "universal": "napi universal",
    "build:js": "node scripts/ensure-wasm-artifact.mjs && tsdown && node scripts/fix-napi-loader.mjs && node scripts/check-wasm-compat.mjs",
    "prepublishOnly": "napi prepublish -t npm && tsdown && node scripts/fix-napi-loader.mjs",
    "test": "bun test __test__/index.spec.ts",
    "test:props": "bun test __test__/properties.spec.ts",
    "test:runtime:bun": "bun scripts/runtime-smoke.mjs",
    "test:runtime:node": "node scripts/runtime-smoke.mjs",
    "version:sync": "node scripts/version-sync.mjs sync",
    "version:check": "node scripts/version-sync.mjs check",
    "release:prepare": "node scripts/prepare-release-package.mjs",
    "release:check": "node scripts/check-release-tarballs.mjs",
    "format": "oxfmt . \"!provenance/**\" \"!.ai/**\" \"!.agents/**\" \"!.claude/**\" \"!AGENTS.md\" \"!CLAUDE.md\" \"!GEMINI.md\" && rustfmt src/lib.rs",
    "typecheck": "tsc --noEmit",
    "lint": "bun --bun oxlint -c oxlint.config.ts --report-unused-disable-directives-severity=error --deny-warnings --type-aware .",
    "lint:fix": "bun --bun oxlint -c oxlint.config.ts --type-aware --fix .",
    "check:wasm-compat": "node scripts/check-wasm-compat.mjs",
    "bench": "bun __bench__/speed.ts",
    "bench:speed": "bun __bench__/speed.ts",
    "bench:unicode": "bun __bench__/unicode.ts",
    "bench:correctness": "bun __bench__/correctness.ts",
    "bench:buf": "bun __bench__/buf-vs-string.ts",
    "bench:all": "bun __bench__/speed.ts && bun __bench__/unicode.ts && bun __bench__/correctness.ts && bun __bench__/buf-vs-string.ts",
    "bench:install": "cd __bench__ && bun install",
    "bench:download": "bash __bench__/download-corpus.sh",
    "sync-ai": "bash scripts/sync-ai-skills.sh",
    "sync-ai:check": "bash scripts/sync-ai-skills.sh --check"
  },
  "devDependencies": {
    "@emnapi/core": "^1.10.0",
    "@emnapi/runtime": "^1.10.0",
    "@napi-rs/cli": "^3.7.0",
    "@stll/oxlint-config": "^0.3.0",
    "@stll/typescript-config": "^0.3.0",
    "@tybys/wasm-util": "^0.10.2",
    "@types/node": "^25.9.1",
    "bun-types": "^1.3.14",
    "emnapi": "^1.10.0",
    "fast-check": "^4.8.0",
    "oxfmt": "0.48.0",
    "oxlint": "^1.67.0",
    "oxlint-tsgolint": "^0.23.0",
    "tsdown": "0.22.1",
    "typescript": "6.0.3",
    "vite": "^8.0.14"
  },
  "napi": {
    "binaryName": "aho-corasick",
    "targets": [
      "x86_64-apple-darwin",
      "aarch64-apple-darwin",
      "x86_64-unknown-linux-gnu",
      "aarch64-unknown-linux-gnu",
      "x86_64-pc-windows-msvc",
      "wasm32-wasip1-threads"
    ]
  },
  "engines": {
    "node": ">= 18"
  },
  "optionalDependencies": {
    "@stll/aho-corasick-darwin-arm64": "1.0.4",
    "@stll/aho-corasick-darwin-x64": "1.0.4",
    "@stll/aho-corasick-linux-arm64-gnu": "1.0.4",
    "@stll/aho-corasick-linux-x64-gnu": "1.0.4",
    "@stll/aho-corasick-wasm32-wasi": "1.0.4",
    "@stll/aho-corasick-win32-x64-msvc": "1.0.4"
  }
}
