{ "name": "altcha-lib", "version": "1.4.1", "description": "A library for creating and verifying ALTCHA challenges for Node.js, Bun and Deno.", "author": { "name": "Daniel Regeci", "url": "https://altcha.org" }, "homepage": "https://altcha.org", "repository": { "type": "git", "url": "https://github.com/altcha-org/altcha-lib" }, "license": "MIT", "keywords": [ "altcha", "captcha", "antispam", "captcha alternative" ], "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "type": "module", "scripts": { "build": "rimraf dist && rimraf cjs/dist && tsc -b tsconfig.build.json tsconfig.cjs.json", "denoify": "rimraf deno_dist && denoify && find deno_dist/. -type f -exec sed -i '' -e 's/node:node:/node:/g' {} +", "eslint": "eslint ./lib/**/*", "format": "prettier --write './(lib|tests)/**/*'", "test": "vitest --run", "test:deno": "deno test --allow-read tests/deno.ts", "prepare": "husky" }, "files": [ "cjs", "dist" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./cjs/dist/index.js", "default": "./dist/index.js" }, "./types": { "types": "./dist/types.d.ts", "import": "./dist/types.js" }, "./worker": { "types": "./dist/worker.d.ts", "import": "./dist/worker.js", "require": "./cjs/dist/worker.js", "default": "./dist/worker.js" } }, "typesVersions": { "*": { "types": [ "./dist/types" ] } }, "devDependencies": { "@types/node": "^24.10.3", "@typescript-eslint/eslint-plugin": "^8.49.0", "denoify": "^1.6.17", "eslint": "^8.57.1", "husky": "^9.1.7", "prettier": "^3.7.4", "rimraf": "^6.1.2", "ts-node": "^10.9.2", "tsx": "^4.21.0", "typescript": "^5.9.3", "vite": "^7.2.7", "vitest": "^4.0.15" } }