UNPKG

@jsonhero/parser

Version:

A parser that walks through a JSON file and for each value determines the path to it, the type and paths to any children. It also builds a model of the structure of the data.

68 lines (67 loc) 2.18 kB
{ "name": "@jsonhero/parser", "version": "1.0.9", "description": "A parser that walks through a JSON file and for each value determines the path to it, the type and paths to any children. It also builds a model of the structure of the data.", "main": "lib/index.js", "module": "./lib/index.mjs", "types": "./lib/index.d.ts", "type": "commonjs", "scripts": { "clean": "rimraf lib", "check-types": "tsc --noEmit", "test": "jest --runInBand --coverage", "build": "rollup -c", "build:watch": "tsc --watch", "prepare": "npm run build", "prepublishOnly": "npm run clean && npm run check-types && npm run format:check && npm run lint && npm test && npm run build", "preversion": "npm run lint", "version": "npm run format && git add -A src", "postversion": "git push && git push --tags", "lint": "eslint . --ext .ts", "lint-and-fix": "eslint . --ext .ts --fix", "format": "prettier --config .prettierrc 'src/**/*.ts' --write && prettier --config .prettierrc 'tests/**/*.ts' --write", "format:check": "prettier --config .prettierrc --list-different 'src/**/*.ts'" }, "repository": { "type": "git", "url": "git+https://github.com/jsonhero-io/json-hero-parser.git" }, "keywords": [ "JSON", "Structure", "Path", "Query" ], "author": "Matt Aitken", "license": "MIT", "publishConfig": { "access": "public" }, "bugs": { "url": "https://github.com/jsonhero-io/json-hero-parser/issues" }, "homepage": "https://github.com/jsonhero-io/json-hero-parser", "devDependencies": { "@rollup/plugin-node-resolve": "^13.1.2", "@types/jest": "^27.0.3", "@typescript-eslint/eslint-plugin": "^5.9.0", "eslint": "^8.6.0", "eslint-plugin-prettier": "^4.0.0", "jest": "^27.3.1", "prettier": "^2.5.1", "rimraf": "^3.0.2", "rollup": "^2.63.0", "rollup-plugin-typescript2": "^0.31.1", "ts-jest": "^27.0.7", "tslint": "^6.1.3", "tslint-config-prettier": "^1.18.0", "typescript": "^4.5.2" }, "files": [ "lib/**/*" ], "dependencies": { "@jsonhero/json-infer-types": "^1.0.7", "@jsonhero/path": "^1.0.6" } }