UNPKG

ducktyper

Version:

A tool for validating input based on the fundamental js idea of duck typing. The object of this is to allow for clearer input validation and specification from the perspective of the developer. It will reduce the amount of time it takes to do input valida

50 lines (49 loc) 1.7 kB
{ "name": "ducktyper", "version": "6.0.3", "description": "A tool for validating input based on the fundamental js idea of duck typing. The object of this is to allow for clearer input validation and specification from the perspective of the developer. It will reduce the amount of time it takes to do input validation and also speed up the reading process when faced with new code. Ultimately, however, The goal is not to make a statically typed language like typescript but instead make a duck typed language. Meaning, the types of the objects are unimportant so long as they follow has-a relationships.", "main": "lib/index.js", "scripts": { "build": "npx tsc", "test": "npm run build && jest", "debug": "node --inspect-brk node_modules/.bin/jest --runInBand" }, "repository": { "type": "git", "url": "git+https://github.com/lewibs/ducktyper.git" }, "keywords": [ "duck", "type", "ducktype", "ducktyper", "js", "typescript", "javascript", "type", "dynamic", "static" ], "author": "lewibs", "license": "MIT", "bugs": { "url": "https://github.com/lewibs/ducktyper/issues" }, "homepage": "https://github.com/lewibs/ducktyper#readme", "devDependencies": { "@babel/cli": "^7.19.3", "@babel/core": "^7.20.5", "@babel/preset-env": "^7.20.2", "@babel/preset-typescript": "^7.18.6", "@types/jest": "^29.2.4", "babel-jest": "^29.3.1", "jest": "^29.3.1", "ts-jest": "^29.0.3", "ts-node": "^10.9.1", "typescript": "^4.9.4" }, "dependencies": { "class-validator": "^0.14.0", "reflect-metadata": "^0.1.13" } }