@chenxxx/json2class
v0.0.2
Published
json2class
Downloads
4
Readme
JSON to TypeScript Class
A zero-dependencies package to generate TypeScript interfaces from JSON data
Installation
npm install @chenxxx/json2class
Usage
const json2class = require('@chenxxx/json2class')
const interface = @chenxxx/json2class.generate(A_VALID_JSON)
Known issues
- A trailing comma will make your JSON invalid
Contributing
Issues and pull requests are always welcome
Thankfor
https://github.com/michelefenu/json2interface