UNPKG

@jsonhero/schema-infer

Version:
86 lines 2.24 kB
{ "name": "@jsonhero/schema-infer", "version": "0.1.5", "description": "Infers JSON Schemas from example JSON", "homepage": "https://github.com/jsonhero-io/schema-infer", "bugs": { "url": "https://github.com/jsonhero-io/schema-infer/issues" }, "repository": { "type": "git", "url": "https://github.com/jsonhero-io/schema-infer.git" }, "exports": "./lib/index.js", "types": "lib/index.d.ts", "files": [ "/lib" ], "publishConfig": { "access": "public" }, "scripts": { "test": "jest --runInBand --coverage", "test:watch": "jest --runInBand --watch", "test:badges": "npm t && jest-coverage-badges --output ./badges", "build": "tsc", "build:watch": "tsc --watch", "prepublishOnly": "tsc", "lint": "eslint . --ext .ts", "lint-and-fix": "eslint . --ext .ts --fix", "prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write && prettier --config .prettierrc 'tests/**/*.ts' --write" }, "engines": { "node": ">=16" }, "keywords": [ "json", "schema", "json-schema" ], "author": "Eric Allam", "license": "MIT", "devDependencies": { "@tsconfig/node16": "^1.0.2", "@types/jest": "^27.0.2", "@types/lodash.omit": "^4.5.6", "@types/node": "^16.11.7", "@typescript-eslint/eslint-plugin": "^5.8.1", "@typescript-eslint/parser": "^5.8.1", "ajv": "^8.8.2", "ajv-formats": "^2.1.1", "eslint": "^8.5.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "jest": "^27.3.1", "jest-coverage-badges": "^1.1.2", "lodash.omit": "^4.5.0", "prettier": "^2.5.1", "ts-jest": "^27.0.7", "ts-node": "^10.4.0", "typescript": "^4.4.4", "yargs": "^17.3.1" }, "jest": { "preset": "ts-jest", "testEnvironment": "node", "coverageReporters": [ "json-summary", "text", "lcov" ] }, "husky": { "hooks": { "pre-commit": "npm run prettier-format && npm run lint" } }, "dependencies": { "@jsonhero/json-infer-types": "1.2.x", "@jsonhero/json-schema-fns": "^0.0.1", "ts-pattern": "^3.3.4", "lodash.omit": "^4.5.0" }, "bin": { "schema-infer": "./cli/schema-infer.js" } }