UNPKG

decoders

Version:

Elegant and battle-tested validation library for type-safe input data for TypeScript

88 lines (87 loc) 2.76 kB
{ "name": "decoders", "version": "2.7.0", "description": "Elegant and battle-tested validation library for type-safe input data for TypeScript", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/nvie/decoders.git" }, "author": "Vincent Driessen", "homepage": "https://github.com/nvie/decoders#readme", "bugs": { "url": "https://github.com/nvie/decoders/issues" }, "type": "module", "main": "./dist/index.cjs", "types": "./dist/index.d.cts", "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "module": "./dist/index.js", "default": "./dist/index.cjs" } } }, "files": [ "dist/**", "LICENSE", "README.md" ], "scripts": { "actually-prepublish": "echo \"\\n\\nPlease run \\`bin/publish.sh <options>\\` instead.\\n\\n\" && exit 2", "build": "tsup", "docs": "cog -cr docs/*.md", "lint": "eslint --color --report-unused-disable-directives src/ test/ && prettier --list-different src/ test/ test-d/", "lint:docs": "cog -c --check docs/*.md || (npm run docs; git diff; echo 'Error: docs not up-to-date, please re-run \"npm docs\" to update them.' && exit 1)", "lint:package": "publint --strict && attw --pack", "format": "eslint --color --report-unused-disable-directives --fix src/ test/ ; prettier --write src/ test/ test-d/", "test": "vitest run --coverage", "test:completeness": "./bin/check.sh", "test:typescript": "tsc --noEmit", "test:types": "npm run build && tsd --typings ./dist/index.d.ts", "release": "npm run test && npm run lint && npm run lint:docs && npm run build && npm run lint:package && release-it" }, "keywords": [ "Decoder", "decoders", "typescript", "runtime", "input", "schema", "validation", "type", "inference", "verify" ], "devDependencies": { "@arethetypeswrong/cli": "^0.17.4", "@eslint/js": "^9.23.0", "@release-it/keep-a-changelog": "^6.0.0", "@standard-schema/spec": "^1.0.0", "@vitest/coverage-istanbul": "^3.0.9", "eslint": "^9.23.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-simple-import-sort": "^12.1.1", "fast-check": "^4.0.0", "itertools": "^2.4.1", "pkg-pr-new": "^0.0.41", "prettier": "^3.5.3", "publint": "^0.3.9", "release-it": "^18.1.2", "ts-morph": "^25.0.1", "tsd": "^0.31.2", "tsup": "^8.4.0", "typescript": "^5.8.2", "typescript-eslint": "^8.28.0", "vite-tsconfig-paths": "^5.1.4", "vitest": "^3.0.9" }, "githubUrl": "https://github.com/nvie/decoders", "sideEffects": false }