0.0.2 • Published 3 years ago

@chenxxx/json2class v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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