@frauschert/ts-guard
Version:
ts-guard is a typescript library that provides composable type guards. Its inspired by zod but focusses only on type guards and is more lightweight.
68 lines (67 loc) • 1.78 kB
JSON
{
"name": "@frauschert/ts-guard",
"version": "1.3.0",
"description": "ts-guard is a typescript library that provides composable type guards.\r Its inspired by zod but focusses only on type guards and is more lightweight.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"./primitive": {
"types": "./lib/guards/primitive.d.ts",
"default": "./lib/guards/primitive.js"
},
"./compound": {
"types": "./lib/guards/compound.d.ts",
"default": "./lib/guards/compound.js"
},
"./node": {
"types": "./lib/guards/node.d.ts",
"default": "./lib/guards/node.js"
}
},
"files": [
"lib/**/*"
],
"scripts": {
"build": "rm -rf ./lib && tsc --project tsconfig.json",
"test": "jest",
"format": "prettier --write src/**/*.ts",
"format:check": "prettier src/**/*.ts",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint --fix src/**/*.ts"
},
"author": "Fabian Rauschert",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^22.13.10",
"@typescript-eslint/eslint-plugin": "^8.25.0",
"@typescript-eslint/parser": "^8.25.0",
"eslint": "^9.21.0",
"jest": "^29.7.0",
"prettier": "^3.5.2",
"ts-jest": "^29.2.6",
"typescript": "^5.7.3"
},
"directories": {
"lib": "lib"
},
"repository": {
"type": "git",
"url": "git+https://github.com/frauschert/ts-guard.git"
},
"keywords": [
"typescript",
"type",
"guards",
"validation"
],
"bugs": {
"url": "https://github.com/frauschert/ts-guard/issues"
},
"homepage": "https://github.com/frauschert/ts-guard#readme",
"sideEffects": false
}