{
  "name": "@duyquangnvx/edge-tts-universal",
  "version": "1.4.5",
  "description": "Universal text-to-speech library using Microsoft Edge's online TTS service. Works in Node.js and browsers WITHOUT needing Microsoft Edge, Windows, or an API key",
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "unpkg": "./dist/browser.js",
  "jsdelivr": "./dist/browser.js",
  "browser": {
    "./dist/index.js": "./dist/browser.js",
    "./dist/index.cjs": "./dist/browser.cjs"
  },
  "engines": {
    "node": "^18.17 || ^20.9 || >=22",
    "npm": ">=9"
  },
  "exports": {
    ".": {
      "bun": {
        "types": "./dist/index.d.ts",
        "import": "./dist/index.js",
        "require": "./dist/index.cjs"
      },
      "deno": {
        "types": "./dist/index.d.ts",
        "import": "./dist/index.js"
      },
      "import": {
        "types": "./dist/index.d.ts",
        "default": "./dist/index.js"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    },
    "./browser": {
      "bun": {
        "types": "./dist/browser.d.ts",
        "import": "./dist/browser.js",
        "require": "./dist/browser.cjs"
      },
      "deno": {
        "types": "./dist/browser.d.ts",
        "import": "./dist/browser.js"
      },
      "import": {
        "types": "./dist/browser.d.ts",
        "default": "./dist/browser.js"
      },
      "require": {
        "types": "./dist/browser.d.cts",
        "default": "./dist/browser.cjs"
      }
    },
    "./isomorphic": {
      "bun": {
        "types": "./dist/isomorphic.d.ts",
        "import": "./dist/isomorphic.js",
        "require": "./dist/isomorphic.cjs"
      },
      "deno": {
        "types": "./dist/isomorphic.d.ts",
        "import": "./dist/isomorphic.js"
      },
      "import": {
        "types": "./dist/isomorphic.d.ts",
        "default": "./dist/isomorphic.js"
      },
      "require": {
        "types": "./dist/isomorphic.d.cts",
        "default": "./dist/isomorphic.cjs"
      }
    },
    "./webworker": {
      "bun": {
        "types": "./dist/webworker.d.ts",
        "import": "./dist/webworker.js",
        "require": "./dist/webworker.cjs"
      },
      "deno": {
        "types": "./dist/webworker.d.ts",
        "import": "./dist/webworker.js"
      },
      "import": {
        "types": "./dist/webworker.d.ts",
        "default": "./dist/webworker.js"
      },
      "require": {
        "types": "./dist/webworker.d.cts",
        "default": "./dist/webworker.cjs"
      }
    },
    "./runtime-detection": {
      "bun": {
        "types": "./dist/runtime-detection.d.ts",
        "import": "./dist/runtime-detection.js",
        "require": "./dist/runtime-detection.cjs"
      },
      "deno": {
        "types": "./dist/runtime-detection.d.ts",
        "import": "./dist/runtime-detection.js"
      },
      "import": {
        "types": "./dist/runtime-detection.d.ts",
        "default": "./dist/runtime-detection.js"
      },
      "require": {
        "types": "./dist/runtime-detection.d.cts",
        "default": "./dist/runtime-detection.cjs"
      }
    }
  },
  "files": [
    "dist"
  ],
  "scripts": {
    "build": "tsup",
    "dev": "tsup --watch",
    "docs": "typedoc",
    "docs:serve": "typedoc --watch",
    "prepublishOnly": "npm run build",
    "test": "npm run build && node --test tests/*.test.js",
    "test:watch": "npm run build && node --test --watch tests/*.test.js",
    "lint": "eslint src examples --ext .ts",
    "lint:fix": "eslint src examples --ext .ts --fix",
    "type-check": "tsc --noEmit",
    "clean": "rm -rf dist",
    "example:simple": "tsx examples/simple-api.ts",
    "example:streaming": "tsx examples/streaming.ts",
    "example:voices": "tsx examples/listVoices.ts",
    "example:universal": "tsx examples/universal-detection.ts",
    "example:universal-api": "tsx examples/universal-api.ts",
    "example:isomorphic": "tsx examples/isomorphic-example.ts",
    "size": "size-limit",
    "analyze": "npx @next/bundle-analyzer",
    "publish:jsr": "deno publish",
    "publish:npm": "npm publish --access public",
    "publish": "npm run publish:npm",
    "publish:all": "npm run publish:npm && npm run publish:jsr"
  },
  "keywords": [
    "text-to-speech",
    "tts",
    "edge-tts",
    "speech-synthesis",
    "microsoft-edge",
    "universal",
    "isomorphic",
    "browser",
    "nodejs",
    "cross-platform",
    "speech",
    "voice",
    "audio",
    "ssml",
    "subtitles"
  ],
  "author": "Travis <contact@travis.engineer> (https://travis.engineer)",
  "license": "AGPL-3.0",
  "homepage": "https://github.com/duyquangnvx/edge-tts-universal",
  "bugs": {
    "url": "https://github.com/duyquangnvx/edge-tts-universal/issues"
  },
  "dependencies": {
    "axios": "^1.12.1",
    "cross-fetch": "^4.1.0",
    "https-proxy-agent": "^7.0.6",
    "isomorphic-ws": "^5.0.0",
    "uuid": "^11.1.0",
    "ws": "^8.18.3",
    "xml-escape": "^1.1.0"
  },
  "devDependencies": {
    "@size-limit/preset-small-lib": "^11.2.0",
    "@types/node": "^22.18.3",
    "@types/uuid": "^10.0.0",
    "@types/ws": "^8.18.1",
    "@types/xml-escape": "^1.1.3",
    "@typescript-eslint/eslint-plugin": "^7.18.0",
    "@typescript-eslint/parser": "^7.18.0",
    "eslint": "^8.57.1",
    "prettier": "^3.6.2",
    "size-limit": "^11.2.0",
    "tsup": "^8.5.0",
    "tsx": "^4.20.5",
    "typedoc": "^0.28.5",
    "typescript": "^5.9.2"
  },
  "directories": {
    "example": "examples"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/duyquangnvx/edge-tts-universal.git"
  },
  "prettier": {
    "semi": true,
    "trailingComma": "es5",
    "singleQuote": true,
    "printWidth": 80,
    "tabWidth": 2,
    "useTabs": false
  }
}
