Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 389 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 389 Bytes

json-to-ts-cli

Simple cli for https://github.com/MariusAlch/json-to-ts

Installing

git clone https://github.com/LeDDGroup/json-to-ts-cli.git
cd json-to-ts-cli
npm ci
npm install --global . # or npm link

Usage

Pipe json (or javascript object) through the stdin and receive typescript from the stdout:

json-to-ts-cli < example-output.json > definitions.d.ts