UNPKG

guardz

Version:

A simple and lightweight TypeScript type guard library for runtime type validation.

182 lines (181 loc) 4.1 kB
{ "name": "guardz", "version": "1.12.1", "description": "A simple and lightweight TypeScript type guard library for runtime type validation.", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "tsc && tsc-alias", "test": "npx jest", "test:watch": "npx jest --watch", "test:coverage": "npx jest --coverage", "test:ci": "npx jest --ci --coverage --watchAll=false --testPathIgnorePatterns=benchmarks", "test:performance": "npx jest --testPathPattern=performance.test.ts", "test:performance:modes": "npx jest --testPathPattern=error-modes-performance.test.ts", "test:performance:ci": "npx jest --testPathPattern=ci-performance.test.ts", "docs": "typedoc --out docs src", "lint": "eslint src/**/*.ts", "lint:fix": "eslint src/**/*.ts --fix", "type-check": "tsc --noEmit", "clean": "rm -rf dist coverage", "prebuild": "npm run clean", "prepublishOnly": "npm run build && npm run test:ci" }, "repository": { "type": "git", "url": "https://github.com/thiennp/guardz.git" }, "keywords": [ "typescript", "type-guard", "typeguard", "runtime-validation", "runtime-type-checking", "type-safety", "schema-validation", "data-validation", "input-validation", "api-validation", "form-validation", "error-handling", "structured-errors", "json-validation", "object-validation", "array-validation", "union-types", "intersection-types", "composite-types", "zero-dependencies", "lightweight", "bundle-size", "performance", "monitoring", "debugging", "testing", "assertion", "type-checking", "type-inference", "typesafe", "react", "angular", "vue", "nodejs", "express", "nextjs", "nestjs", "fastify", "koa", "webpack", "vite", "rollup", "esbuild", "swc", "jest", "vitest", "cypress", "playwright", "axios", "fetch", "graphql", "rest-api", "microservices", "serverless", "aws", "azure", "gcp", "docker", "kubernetes", "ci-cd", "github-actions", "gitlab-ci", "vercel", "netlify", "deno", "bun", "esm", "commonjs", "umd", "tree-shaking", "code-splitting", "bundle-optimization", "developer-experience", "dx", "developer-tools", "typescript-ecosystem", "javascript-ecosystem", "frontend", "backend", "fullstack", "web-development", "mobile-development", "desktop-development", "cli-tools", "build-tools", "compiler", "transpiler", "static-analysis", "linting", "code-quality", "best-practices", "enterprise", "startup", "open-source", "mit-license" ], "author": "Thien Nguyen", "license": "MIT", "bugs": { "url": "https://github.com/thiennp/guardz/issues" }, "homepage": "https://github.com/thiennp/guardz#readme", "funding": [ { "type": "github", "url": "https://github.com/sponsors/thiennp" }, { "type": "opencollective", "url": "https://opencollective.com/guardz" }, { "type": "ko-fi", "url": "https://ko-fi.com/nguyenphongthien" }, { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/guardz" }, { "type": "issuehunt", "url": "https://issuehunt.io/r/thiennp/guardz" }, { "type": "liberapay", "url": "https://liberapay.com/~1889616" } ], "devDependencies": { "@types/jest": "^29.0.0", "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "eslint": "^8.56.0", "husky": "^9.0.0", "jest": "^29.0.0", "lint-staged": "^15.0.0", "prettier": "^3.0.0", "ts-jest": "^29.4.0", "tsc-alias": "^1.8.10", "tsconfig-paths": "^4.2.0", "typedoc": "^0.28.3", "typescript": "^5.0.0" }, "lint-staged": { "*.ts": [ "eslint --fix", "prettier --write" ] }, "files": [ "dist" ] }