Just released a new project called tsconfig-api. This API takes the TypeScript CLI options and makes them available via a microservice API. The data is based off of the compiler options handbook file (find the markdown version here). The API is a microservice built on Node.js. It uses now for build and deployment.
Use this API by making a GET request to https://tsconfig-api.matterhorndev.now.sh/tsconfig?option=<compiler option>
Don't forget to pass a valid compiler option to the option
query parameter!
Check out the project's README on GitHub for a full list of options.
This project was created in preparation for future tools that will utilize the TypeScript compiler options. Currently planned are a web app and a command line interface for learning about and creating tsconfig files / tsc compile commands.
I hope you enjoy using it!
Top comments (0)