UNPKG

maketypes

Version:

Make TypeScript types and proxy objects from example JSON objects. Can use proxy objects to dynamically type check JSON at runtime.

51 lines (50 loc) 1.51 kB
{ "name": "maketypes", "version": "1.1.2", "description": "Make TypeScript types and proxy objects from example JSON objects. Can use proxy objects to dynamically type check JSON at runtime.", "main": "lib/index.js", "types": "lib/index", "scripts": { "prepublish": "tsc", "generate:test": "node ./test/common/generateSamples.js", "build:test": "tsc -p test/tsconfig.json", "mocha": "mocha", "istanbul": "istanbul cover ./test/common/generateSamples.js", "coverage": "npm-run-all --serial prepublish istanbul", "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "travis": "npm-run-all --serial test coverage coveralls", "test": "npm-run-all --serial prepublish generate:test build:test mocha" }, "bin": { "make_types": "./index.js" }, "repository": { "type": "git", "url": "git+https://github.com/jvilk/MakeTypes.git" }, "keywords": [ "TypeScript", "types", "JSON", "synthesis" ], "author": "John Vilk <jvilk@cs.umass.edu>", "license": "MIT", "bugs": { "url": "https://github.com/jvilk/MakeTypes/issues" }, "homepage": "https://github.com/jvilk/MakeTypes#readme", "devDependencies": { "@types/mocha": "^2.2.34", "@types/node": "0.0.2", "@types/yargs": "^6.3.3", "coveralls": "^2.11.15", "istanbul": "^1.0.0-alpha", "mocha": "^3.2.0", "npm-run-all": "^3.1.2", "typescript": "^2.1.4" }, "dependencies": { "yargs": "^6.5.0" } }