{"_id":"json-ts","_rev":"229034","name":"json-ts","description":"Automatically generate Typescript Definition files or Flow types from JSON input","dist-tags":{"latest":"1.6.4"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"time":{"modified":"2024-06-14T10:53:57.000Z","created":"2017-05-19T06:45:01.018Z","1.6.4":"2018-01-10T22:02:14.331Z","1.6.3":"2017-12-20T21:09:47.112Z","1.6.2":"2017-12-18T22:05:32.507Z","1.6.0":"2017-12-18T18:27:37.748Z","1.5.5":"2017-12-17T21:42:08.194Z","1.5.4":"2017-08-29T12:23:55.839Z","1.5.3":"2017-06-01T07:46:31.701Z","1.5.2":"2017-05-30T20:49:29.806Z","1.5.1":"2017-05-22T12:34:52.773Z","1.5.0":"2017-05-22T12:26:54.512Z","1.4.0":"2017-05-22T09:01:18.821Z","1.3.0":"2017-05-22T08:36:41.345Z","1.2.0":"2017-05-21T20:51:37.313Z","1.1.0":"2017-05-20T21:11:33.574Z","1.0.5":"2017-05-19T21:26:16.799Z","1.0.4":"2017-05-19T08:31:02.270Z","1.0.3":"2017-05-19T07:54:49.278Z","1.0.2":"2017-05-19T07:53:29.521Z","1.0.1":"2017-05-19T07:50:40.522Z","1.0.0":"2017-05-19T06:45:01.018Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"versions":{"1.6.4":{"name":"json-ts","version":"1.6.4","description":"Automatically generate Typescript Definition files or Flow types from JSON input","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","transducers-js":"^0.4.174","typescript":"^2.3.2"},"keywords":["json","typescript","flow","types","interfaces"],"scripts":{"test":"tsc && jest --runInBand","prepublish":"npm test"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"22","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"eb6d3acdae92f03a31f9f0494ac6fa464bdb1891","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"},"homepage":"https://github.com/shakyshane/json-ts#readme","_id":"json-ts@1.6.4","_npmVersion":"5.5.1","_nodeVersion":"8.7.0","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"integrity":"sha512-NFsb12aYB3v2W14UOX6zcYvfrkFmwJWlzGrmKFlRQtJujtnpAKFRvVem4L30MvJjJQmOKDUTRIgLUAE4UTFqRg==","shasum":"e4423b8ccdb3069306f4727d6a579790675abbd0","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.6.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD49Io13oOlYLo16OtEnxfVbjUT25KN/oppSVtY42pdbQIgTndqgL80a7302bUInqtGIQ0cnWur3b0W+KsE373TDdk="}],"size":2718707,"noattachment":false,"key":"/json-ts/-/json-ts-1.6.4.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.6.4.tgz_1515621732485_0.9312066859565675"},"directories":{},"publish_time":1515621734331,"_cnpm_publish_time":1515621734331},"1.6.3":{"name":"json-ts","version":"1.6.3","description":"Automatically generate Typescript Definition files or Flow types from JSON input","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","transducers-js":"^0.4.174","typescript":"^2.3.2"},"keywords":["json","typescript","flow","types","interfaces"],"scripts":{"test":"tsc && jest","prepublish":"npm test"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"22","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"c78c5ba333eb4f0e0bed209ce7c14b82d032a3bf","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"},"homepage":"https://github.com/shakyshane/json-ts#readme","_id":"json-ts@1.6.3","_npmVersion":"5.5.1","_nodeVersion":"8.7.0","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"integrity":"sha512-NTwF74UQek0Pvzpk+k8EEWMGaKK6eteBRquFxL05Qbt7+dFEplkCgWgHecPsNW/o9WOpPL8ubuSFXKoSi212LQ==","shasum":"444c333654fb24536c396abbf8f2180639e502a9","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.6.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFTnE4xgrZ0VTGP7cXuJfJEHicY58Icoq01U1BIzp9F5AiEAmgZH81XC2Zetxo4KEq7ZkvdNj7AyVYmSzGSn9sh3168="}],"size":44928,"noattachment":false,"key":"/json-ts/-/json-ts-1.6.3.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.6.3.tgz_1513804186036_0.9361880617216229"},"directories":{},"publish_time":1513804187112,"_cnpm_publish_time":1513804187112},"1.6.2":{"name":"json-ts","version":"1.6.2","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","transducers-js":"^0.4.174","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"npm test"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"22","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"5e53d5a6f784827f7f535d3e48b2635859d6b504","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"},"homepage":"https://github.com/shakyshane/json-ts#readme","_id":"json-ts@1.6.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"integrity":"sha512-2o2630ce10OoBSS02yMq9T1k1SJuSb7n+WyIMb7BK0sNGZOa4XDsfRfB8VSIs9ZWwX1XG7k+P5fUFaLS5WQjAQ==","shasum":"b59d5e6798b0ef43c0900df42f6518a26241612b","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.6.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC51e8ysYeY7un9TyTHO24NQvWv6GfDy5+nJ2JwMKAngAiBqV7dDwSiUIBoVTw0bRIDCZR9FO9+ERtmbcutG0zpQeg=="}],"size":2712047,"noattachment":false,"key":"/json-ts/-/json-ts-1.6.2.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.6.2.tgz_1513634730235_0.6094996121246368"},"directories":{},"publish_time":1513634732507,"_cnpm_publish_time":1513634732507},"1.6.0":{"name":"json-ts","version":"1.6.0","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","transducers-js":"^0.4.174","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"npm test"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"22","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"92446afcdb4b8896f51ec153c8ff1f9e23b9aeba","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"},"homepage":"https://github.com/shakyshane/json-ts#readme","_id":"json-ts@1.6.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"integrity":"sha512-8lDW4VzqYyNHxzC4n7yBIbP1wefJ0E242vV5tzz293tlJdwfY18fkLkrh+XFfMcnXCNSuEDZDvxJhw48j4uWMg==","shasum":"cd3849946b36863108b20a0f66ab2f1d7f3bfafb","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEam6Su0CuG8O1CqqFGEAzPIyrDbQDxoWz0jybS7r9RAiEAuPGW8gQIuajJcZLAVQgBhlgpbxjRkG4ImNom9BZkaKA="}],"size":2711743,"noattachment":false,"key":"/json-ts/-/json-ts-1.6.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.6.0.tgz_1513621655673_0.3105721273459494"},"directories":{},"publish_time":1513621657748,"_cnpm_publish_time":1513621657748},"1.5.5":{"name":"json-ts","version":"1.5.5","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"npm test"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"^20.0.3","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"430ec53c58906d9611e76dbaface5499d880790c","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"},"homepage":"https://github.com/shakyshane/json-ts#readme","_id":"json-ts@1.5.5","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"integrity":"sha512-/omwStc8ZrkwVs36EWIQpUmOauNkie1Dp7mHsolcgynafR+0WoZD2oszsS5XBLE/YTKfbzHq/LXsxEakLPgm/g==","shasum":"cc89d51ab29735637df36beca4e6081a88169b02","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.5.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOMFBrXLJVA9k69g5qiHmB/YjxkvfRj0PAUScEA/OyTAiEAs3R4a4RH26ND+QeI43yR2zE7O+mo0j6ObmbTayoRKqQ="}],"size":2711661,"noattachment":false,"key":"/json-ts/-/json-ts-1.5.5.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.5.5.tgz_1513546927970_0.9772454483900219"},"directories":{},"publish_time":1513546928194,"_cnpm_publish_time":1513546928194},"1.5.4":{"name":"json-ts","version":"1.5.4","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"npm test"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"^20.0.3","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"e14df94d2d1f0b27262a2d429188e2e461aae099","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"},"homepage":"https://github.com/shakyshane/json-ts#readme","_id":"json-ts@1.5.4","_shasum":"76ca41d7a5d47be5bf303c4e3e644478334f7158","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"76ca41d7a5d47be5bf303c4e3e644478334f7158","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.5.4.tgz","integrity":"sha512-6SHi00YiBFP1p7vgei9t5rSlim3juKCg6AXe6/UkjsObVGZtsCDjJPzjBoDb5JoCCBu89dCZil5VepgnWgDi5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjlhV+rqdfmfZqFxWhDLeggre7w6kWbB/H4rRLGgXNLwIhAPdJ9mV3XXROGiCozc8NM7y4o6emeQDGavkFhpxSRiud"}],"size":2710785,"noattachment":false,"key":"/json-ts/-/json-ts-1.5.4.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.5.4.tgz_1504009433503_0.19008213584311306"},"directories":{},"publish_time":1504009435839,"_cnpm_publish_time":1504009435839},"1.5.3":{"name":"json-ts","version":"1.5.3","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"npm test"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"repository":{"type":"git","url":"git+https://github.com/shakyshane/json-ts.git"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"^20.0.3","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"0bf1c90c5b377c6b93c2d0e3ce8438bf86360040","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"},"homepage":"https://github.com/shakyshane/json-ts#readme","_id":"json-ts@1.5.3","_shasum":"1c6a7f3fd33e43672b63a812d5b28779ea75e2b6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"1c6a7f3fd33e43672b63a812d5b28779ea75e2b6","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.5.3.tgz","integrity":"sha512-VuqgOBDO//qP+bq6qPx0s/8V5Hv7tgI8cMW3q6NZ6/f/DQNHA9PXrkKuOuKtamTKXF/0T1ZTaG/lZ3zQ16QKCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxaz/vshfLqFx8OZhG6yt/ucZcotnMvvNb3xsyeOYyrAIgO/YWuM1/nZexcvFLg6m7F7lQz/RAetutJuebWTaMFx8="}],"size":40059,"noattachment":false,"key":"/json-ts/-/json-ts-1.5.3.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.5.3.tgz_1496303190524_0.29427681723609567"},"directories":{},"publish_time":1496303191701,"_cnpm_publish_time":1496303191701},"1.5.2":{"name":"json-ts","version":"1.5.2","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","browserify":"^14.3.0","exorcist":"^0.4.0","jest":"^20.0.3","source-map-support":"^0.4.15","uglify-js":"^3.0.10"},"gitHead":"100f94765c387bcb1d230b193f79c23ee8872770","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","_id":"json-ts@1.5.2","_shasum":"58a5a4d4db981a2c8764f3f2cb5ed0de0838b8f3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"58a5a4d4db981a2c8764f3f2cb5ed0de0838b8f3","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.5.2.tgz","integrity":"sha512-x8MJCx5fMJPfOfv89bYHuQr3ADi3G9osLp0a8OAeXCiUyLHGIsPRLxVFIeXr0bXOi7uhJAeKu36KS9qHADsgcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIC3+jm5ZcBZ7btoqrNKMHZxxxcxECSMdMTUMvBXPxUAiEAqs1syuysG7JVQ3Tqhmdzs5sp33P0q0MRtk72s/xJbSs="}],"size":2710216,"noattachment":false,"key":"/json-ts/-/json-ts-1.5.2.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.5.2.tgz_1496177367866_0.2674051483627409"},"directories":{},"publish_time":1496177369806,"_cnpm_publish_time":1496177369806},"1.5.1":{"name":"json-ts","version":"1.5.1","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"6a6ee7addc303bcbc32506693144a1cc3a70c27f","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","_id":"json-ts@1.5.1","_shasum":"d90d7815439a83e0c1a9d742ff8d948d6f1fd57f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"d90d7815439a83e0c1a9d742ff8d948d6f1fd57f","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.5.1.tgz","integrity":"sha512-hEeI5fpuIb6VP7bO9c0HrjItuucPOLqXR+3EATMzaeVYtsPkSkUCj0ISa5GJkyJdTfdqMf+AwB3zo4TwiDNPYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhn/XJO7OSiu2vQ5YtaPPOpnlSRbId8Th3FE7CSVLcFQIgfTB9Wh9I8h4gL8vlS76I/2lltfX4Mpgj9s/07amchQ4="}],"size":34697,"noattachment":false,"key":"/json-ts/-/json-ts-1.5.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.5.1.tgz_1495456491695_0.6777591346763074"},"directories":{},"publish_time":1495456492773,"_cnpm_publish_time":1495456492773},"1.5.0":{"name":"json-ts","version":"1.5.0","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"9d3df0c0778b137ddc7ec792610c409b7eb09436","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","_id":"json-ts@1.5.0","_shasum":"109521cad8d506aa930c4d28d0616a8a9d74d460","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"109521cad8d506aa930c4d28d0616a8a9d74d460","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.5.0.tgz","integrity":"sha512-UdW4SO9KgBaVaGlrax433tRNb0iwm00g0ec77Ts3u63y5kPTxZ9PTF/7QGvLUlivri1+zBppGN5c6U0/zyvbmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKWvanmU91MnAGw2+4hxovi4Vpa0tn4oxZ9UywA7tTIAIhAP425jCZ5xngHvjSvw5kjFXUUYgqk4Em0KzIfcvu9y5K"}],"size":34693,"noattachment":false,"key":"/json-ts/-/json-ts-1.5.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.5.0.tgz_1495456013515_0.9046951369382441"},"directories":{},"publish_time":1495456014512,"_cnpm_publish_time":1495456014512},"1.4.0":{"name":"json-ts","version":"1.4.0","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"5ac8bdd8fbe403df6b9fa29f9d49f9ceecc486ea","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","_id":"json-ts@1.4.0","_shasum":"b31679f819009a1b7d902807025742f24fc1c29e","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"b31679f819009a1b7d902807025742f24fc1c29e","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.4.0.tgz","integrity":"sha512-qj9K26+kHHvwGP2PTxqIYhbu53e4kXNu5Jjilg4emKH7csnEFdTOH78NcV5uG7ArIxynsyIgsF7BkuIdPTU0NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCamQQZVD7ahp0gB5rps0L9bD5+Tx3w3JLMlCgmGpMHnAIgBmaKIrkvatmckhnIiljOhsrAi9Fdzw2487Uqv/i90ho="}],"size":2194939,"noattachment":false,"key":"/json-ts/-/json-ts-1.4.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.4.0.tgz_1495443677001_0.3917733517009765"},"directories":{},"publish_time":1495443678821,"_cnpm_publish_time":1495443678821},"1.3.0":{"name":"json-ts","version":"1.3.0","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"eda4b43c3f47378b8033764b39974c3849968091","description":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)","_id":"json-ts@1.3.0","_shasum":"a35ffc0275bb888e25dd30a98969865748780ab2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"a35ffc0275bb888e25dd30a98969865748780ab2","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.3.0.tgz","integrity":"sha512-5QEpghtQrZhOnnEIsZHUyFcorDusdoP8/K47v0Rt8QhvIgsoxe8OHlHvhbXzrifCKbMe4FUL6Htb5c4jAEZazA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJLgsNQpAjh+QLTw6Yvj0Lupv9hRvCq5XzDV8EAc70GgIhANAcsZxTdJzM8TsAL4fhF8GuT/n/umkxcoYdzKlrOLXz"}],"size":2194804,"noattachment":false,"key":"/json-ts/-/json-ts-1.3.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.3.0.tgz_1495442199532_0.24530964414589107"},"directories":{},"publish_time":1495442201345,"_cnpm_publish_time":1495442201345},"1.2.0":{"name":"json-ts","version":"1.2.0","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"82e419e4168f329319a25cbd9a32eb31e57553b6","description":"> Automatically generate Typescript Definition files based on JSON input. This allows  a frontend to verify it's using a backend correctly & optionally tie it into a CI environment.","_id":"json-ts@1.2.0","_shasum":"af37241657700077c04c3605f39e3f3870318e6f","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"af37241657700077c04c3605f39e3f3870318e6f","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.2.0.tgz","integrity":"sha512-Jr/2mkByrbg0QSoYqIiroHhTlS/JDvDGhIL0Eh+bmNpsmcKybXbO630KWCcSate+OV/3oAt1kvHIE9bY+AExXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc3mc5zX0ZJcOd6E7akVvL5AoghXL2wR1KziUXpsywewIhALwO4ZbR7e0v2GV7zBMFFfhOjNL1NuU9CKKguC6GowI7"}],"size":2194117,"noattachment":false,"key":"/json-ts/-/json-ts-1.2.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.2.0.tgz_1495399895457_0.2398542209994048"},"directories":{},"publish_time":1495399897313,"_cnpm_publish_time":1495399897313},"1.1.0":{"name":"json-ts","version":"1.1.0","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","needsquotes":"^1.0.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"86e5eac263258963c6d4eb164bf57c47686f4b70","description":"> Automatically generate Typescript Definition files based on JSON input. This allows  a frontend to verify it's using a backend correctly & optionally tie it into a CI environment.","_id":"json-ts@1.1.0","_shasum":"563c873a23c3d4e711f291614a7fc5ea697c88d4","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"563c873a23c3d4e711f291614a7fc5ea697c88d4","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.1.0.tgz","integrity":"sha512-wcSbi3mdhD4iGc90b3JG9OLTKUDZSzAyGiDxRXBsI3weE0+KLr4NeySHh2a0juuSHYx8l+Q+L+M7WwD4CzD6hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJOSWKpwyFuxglNsNQmuHZbtu81RqgkafJTDM8ZdClBAiBZT6Yvu8ByhrsSBIkII8+ETRsngL14hv1PUfafsvAQ4A=="}],"size":2187281,"noattachment":false,"key":"/json-ts/-/json-ts-1.1.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.1.0.tgz_1495314691585_0.8166010878048837"},"directories":{},"publish_time":1495314693574,"_cnpm_publish_time":1495314693574},"1.0.5":{"name":"json-ts","version":"1.0.5","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"1d5bebc89911e0796867324fe70cd0e8978b45ea","description":"> Automatically generate Typescript Definition files based on JSON input. This allows  a frontend to verify it's using a backend correctly & optionally tie it into a CI environment.","_id":"json-ts@1.0.5","_shasum":"57e9819202ed1c38773400183ae10f8d12e3aa00","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"57e9819202ed1c38773400183ae10f8d12e3aa00","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.0.5.tgz","integrity":"sha512-qbKXOX9r+cOKHeYS0w5K04yHp2pS+Ma1sVG1atE1wEyTk8Y+kwrtQ4d/61iDBNgPl0M1PKjKLjuvHFr+/JtGnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrOVR0fIzdDytEH1U6CwcEXxBGyVY8AH4VklGaYUcPpAiEApboYqN+nv8liUndmw/8ZPRP3P9GneTucLRA1a/PaqCY="}],"size":25456,"noattachment":false,"key":"/json-ts/-/json-ts-1.0.5.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ts-1.0.5.tgz_1495229175728_0.19751101662404835"},"directories":{},"publish_time":1495229176799,"_cnpm_publish_time":1495229176799},"1.0.4":{"name":"json-ts","version":"1.0.4","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","minimist":"^1.2.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"007ed3520d7c267af01524b9f0d6d453f6c55c3c","description":"> Automatically generate Typescript Definition files based on JSON input. This allows  a frontend to verify it's using a backend correctly & optionally tie it into a CI environment.","_id":"json-ts@1.0.4","_shasum":"122c90e3384ca2604497fdf2801750071fa021eb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"122c90e3384ca2604497fdf2801750071fa021eb","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.0.4.tgz","integrity":"sha512-klDrC3lfpgAybal9F41+8oAJCvI1FlUmby9LBApqb8UQBYxH5UkJGNAI+Za+n1qCI6YNQPShCviSZ4wnXKZTug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOwRHUuyzSpe9RioaRuy1mQ2DwqKlKgUjztFAX4Uzm4AiEAxJ43yu7aTtl5+Nv1lrRN8tbWBH4wxlc27pkVstCHZnY="}],"size":24010,"noattachment":false,"key":"/json-ts/-/json-ts-1.0.4.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/json-ts-1.0.4.tgz_1495182660225_0.8118021548725665"},"directories":{},"publish_time":1495182662270,"_cnpm_publish_time":1495182662270},"1.0.3":{"name":"json-ts","version":"1.0.3","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","lodash":"^4.17.4","minimist":"^1.2.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"e9df975e202dc48db3accf66f1c299821825c6be","description":"> TS implementation of json2ts","_id":"json-ts@1.0.3","_shasum":"9b4ca9c9ab7186c63ab34a90d330406985dd9674","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"9b4ca9c9ab7186c63ab34a90d330406985dd9674","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.0.3.tgz","integrity":"sha512-Fs4uiBQgeedF8p6w4sOtruR7UeUokt2UsRAJfE9lKbOpxUm8SM0vvfhHIpSwaVZGVSA+ffC7qy2vXT788Vibxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDc4x+X2GCTQ9OL/IJ1eTkk5QjoWerq5TdnjeymQUvQYwIhANYhv7npUNHDBEXE6NThMqGiqIhxibpoqOsjGjeEScwe"}],"size":23856,"noattachment":false,"key":"/json-ts/-/json-ts-1.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/json-ts-1.0.3.tgz_1495180487228_0.3447624233085662"},"directories":{},"publish_time":1495180489278,"_cnpm_publish_time":1495180489278},"1.0.2":{"name":"json-ts","version":"1.0.2","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","lodash":"^4.17.4","minimist":"^1.2.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"files":["dist","src","_.js"],"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"c61804fdd4b9f580881969909a6caa4c76433a31","description":"> TS implementation of json2ts","_id":"json-ts@1.0.2","_shasum":"8e2d01e2bcc3a89a72e62d35a37b46f3deb232ac","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"8e2d01e2bcc3a89a72e62d35a37b46f3deb232ac","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.0.2.tgz","integrity":"sha512-X3EGGHmXvnCRzdf0eh5ziKKbdFhRVNdTdSxY+fka6rxUEYnFG4Kbpo8zMpbOuSVjmceCCXDDHIdniux973c++Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSNPhAPkeKN5QXYX6SLfB/GcdUm27ajNAoZoaOlsuPpAIgTK6zFZGmNMXmRsqh2JcgxDwPae2Wu9pKIOX7eA8enN0="}],"size":23839,"noattachment":false,"key":"/json-ts/-/json-ts-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-ts-1.0.2.tgz_1495180408357_0.6834791826549917"},"directories":{},"publish_time":1495180409521,"_cnpm_publish_time":1495180409521},"1.0.1":{"name":"json-ts","version":"1.0.1","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","lodash":"^4.17.4","minimist":"^1.2.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest","prepublish":"tsc && jest"},"bin":{"json-ts":"dist/bin.js"},"main":"dist/index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"f7ce7d85283f618ea4492156d43ee08e936f3321","description":"> TS implementation of json2ts","_id":"json-ts@1.0.1","_shasum":"8b8ab24274e4c0ea21e1c7091ec7bfce5deb7ae9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"dist":{"shasum":"8b8ab24274e4c0ea21e1c7091ec7bfce5deb7ae9","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.0.1.tgz","integrity":"sha512-VRu8rkazlfb3zQoWREdx12pWUYvRto2WiU0v2Q4gTXA1NhZE/rGDvFvYGKTEFVsoa+Ex1XuIFziL/XJCsXu1Ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6m8Yvw+yUV9sdVAci9Euuk/gNdBI0mF4j/OELQ8B87AiAVXYPEEaKiNCAAN3EKzdvVC3fLC2ei75Px0fHYlOr5CQ=="}],"size":35705,"noattachment":false,"key":"/json-ts/-/json-ts-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-ts-1.0.1.tgz_1495180239461_0.618677657097578"},"directories":{},"publish_time":1495180240522,"_cnpm_publish_time":1495180240522},"1.0.0":{"name":"json-ts","version":"1.0.0","dependencies":{"get-stdin":"^5.0.1","immutable":"^3.8.1","lodash":"^4.17.4","minimist":"^1.2.0","typescript":"^2.3.2"},"scripts":{"test":"tsc && jest"},"bin":{"json-ts":"bin.js"},"main":"index.js","devDependencies":{"@types/node":"^7.0.18","jest":"^20.0.3","source-map-support":"^0.4.15"},"gitHead":"2aa6968a77a4c579cbe8d2bc6b57fea3c7b8b79d","description":"> TS implementation of json2ts","_id":"json-ts@1.0.0","_shasum":"cf795c1aeb9acb40a5a493ab63c7b70c3cbf6d7d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"shakyshane","email":"shakyshane@gmail.com"},"dist":{"shasum":"cf795c1aeb9acb40a5a493ab63c7b70c3cbf6d7d","tarball":"http://registry-npm.ywwl.com/json-ts/download/json-ts-1.0.0.tgz","integrity":"sha512-GgwQAeHaBuFW8A7fSjTJzBy+tfTNoi3EewNBI5M5UaglztUK3OBg3Z0k8FHTHyXTx52IQ1TIeTbkNG0ONausNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEm9l7ftu339BMlUU9ADbDVCayhRegRc45tZRRONL84fAiEAjKfF/XvzaGlBM8G8/dypYFog+xRVF3eI0CHZqdr5ygU="}],"size":29659,"noattachment":false,"key":"/json-ts/-/json-ts-1.0.0.tgz"},"maintainers":[{"name":"shakyshane","email":"shakyshane@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-ts-1.0.0.tgz_1495176299598_0.2518009068444371"},"directories":{},"publish_time":1495176301018,"_cnpm_publish_time":1495176301018}},"readme":"[![Build Status](https://travis-ci.org/shakyShane/json-ts.svg?branch=master)](https://travis-ci.org/shakyShane/json-ts)\n\n## `npm install -g json-ts`\n\n> Automatically generate Typescript Definition files or Flow types from JSON input. \n\n> Use it via the API, CLI, or [Website](https://shakyshane.github.io/json-ts/)\n \n![json-ts](https://cdn.rawgit.com/shakyShane/json-ts/37ce9b2b/json-ts2.gif)\n\n### How does **json-ts** stack up against the competition?\n\n|Feature   |json-ts (this library)  |[json-to-ts](https://github.com/MariusAlch/json-to-ts)   |[json2ts](http://json2ts.com/)  |\n|---|---|---|---|\n|simple literal types (number, string etc) |**YES**   |YES   |YES   |\n|array type, all elements of same kind |**YES**   |YES   |YES   |\n|merge multiple json files|**YES (cli, v1.6 & above)**   |NO   |NO   |\n|optional members | **YES** | YES | NO |\n|array union types | **YES**   |YES   |NO   |\n|correct handling of top-level values ([strings](https://shakyshane.github.io/json-ts/#src=%22some-api-token-as-string%22), [arrays](https://shakyshane.github.io/json-ts/#src=%5B1%2C%202%2C%203%5D), [arrays of objects](https://shakyshane.github.io/json-ts/#src=%5B%0A%20%20%7B%22name%22%3A%20%22shane%22%7D%2C%0A%20%20%7B%22name%22%3A%20%22kittie%22%2C%20%22age%22%3A%2030%7D%0A%5D) [numbers](https://shakyshane.github.io/json-ts/#src=1) etc) |**YES**   |NO   |NO   |\n|recursive data structures ([see here](https://github.com/shakyShane/json-ts/blob/master/__tests__/magento/categories.json)) |**YES**   |NO   |NO   |\n|nested type literals (to account for invalid [interface names](https://github.com/shakyShane/json-ts/blob/master/__tests__/swagger/schema.json)) |**YES**   |YES   |NO   |\n|output @flow types |**YES**   |NO   |NO   |\n|Website |**[YES](https://shakyshane.github.io/json-ts/)**   |[YES](http://www.jsontots.com/)   |[YES](http://json2ts.com/)   |\n|CLI |**YES**   |NO   |NO   |\n|API |**YES**   |YES   |NO   |\n \n## Quick-start\n```bash\n# install\nnpm install -g json-ts\n\n# run against a single JSON file\njson-ts dir/myfile.json\n\n# run against multiple single JSON files (interfaces will be merged)\njson-ts api/resp1.json api/resp2.json\n```\n\n## Usage (CLI)\nNote: only stdin (which requires the --stdin flag) & filepaths are supported right now. \nLater I will add support for Windows, reading data from network requests etc.\n\n```bash\n## piping via stdin\ncurl https://jsonplaceholder.typicode.com/posts/1 | json-ts --stdin\n\n## reading single json file from disk\njson-ts my-file.json\n\n## reading multiple json files from disk\njson-ts my-file.json my-other-file.json\n```\n\n... produces the following: \n\n```ts\ninterface IRootObject {\n  userId: number;\n  id: number;\n  title: string;\n  body: string;\n}\n```\n\n## Usage (API)\n\n```bash\nnpm install json-ts --save-dev\n```\n\n```js\nconst { json2ts } = require('json-ts');\nconst json = `\n{\n    \"name\": \"Shane\"\n}\n`;\nconsole.log(json2ts(json))\n```\n\n... produces the following:\n\n```ts\ninterface IRootObject {\n  name: string;\n}\n```\n\nFor more examples, see the [Tests](https://github.com/shakyShane/json-ts/tree/master/__tests__) \n\n## Options\n\n - **namespace: string** - if provided, interfaces will be wrapped in a namespace (see below)\n    ```bash\n    # usage\n    json-ts <filename> --namespace <namespace_name> \n    \n    # example\n    json-ts data/my-file.json --namespace API\n    ```\n - **flow: boolean** - output types in Flow format.\n    ```bash\n    # usage\n    json-ts <filename> --flow \n    \n    # example\n    json-ts data/my-file.json --flow\n    ```\n - **prefix: string** - override the `I` prefix on interface names\n    ```bash\n    # usage\n    json-ts <filename> --prefix <prefix_string> \n    \n    # example (remove prefix)\n    json-ts data/my-file.json --prefix \"\"\n    ```\n - **rootName: string** - override the `RootObject` name of the top-level interface\n    ```bash\n    # usage\n    json-ts <filename> --rootName <rootname_string> \n    \n    # example\n    json-ts data/my-file.json --rootName \"Product\"\n    ```\n\n## TODO:\n\n### options\n\n- [x] Allow choice of `I` prefix on interface names\n- [x] Allow naming of RootObject\n- [ ] Allow choice of spaces/tabs\n\n### Core\n- [x] support array types\n- [x] support boolean types\n- [x] support null types\n- [x] output types for Flow via `--flow`\n- [x] PascalCase as default for all interface names\n- [x] de-dupe interfaces (it's dumb atm, POC)\n- [x] de-dupe interfaces where propname differs, but members are the same\n- [x] merge interfaces by creating union types for members\n- [x] union types for array that contain mixed literal types: `nums: [1, \"2\"] -> nums: number|string[]`\n      (already works for complex objects)\n- [x] quoted member names when needed\n- [x] handle invalid name for interface\n- [x] support type alias declarations\n- [x] Use Typescript factory methods/printer for output \n- [x] Allow wrapping in namespace: eg:\n    ```ts\n        declare namespace Projects {\n            export interface ILoc {\n               lat: number;\n               lng: number;\n            }\n            ...\n        }\n    ```\n    \n### CLI\n- [x] CLI tool to accept stdin (with `--stdin` flag)\n- [x] CLI tool to accept json file as input\n- [ ] CLI tool to accept URL as input (for validating against remote API)\n- [ ] configurable output (filename/stdout etc)\n","_attachments":{},"homepage":"https://github.com/shakyshane/json-ts#readme","bugs":{"url":"https://github.com/shakyshane/json-ts/issues"}}