We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8291d7 commit 6c69141Copy full SHA for 6c69141
README.md
@@ -65,7 +65,20 @@ json-schema-to-typescript is easy to use via the CLI, or programmatically.
65
66
### CLI
67
68
-A CLI utility is provided with this package.
+First make the CLI available using one of the following options:
69
+
70
+```sh
71
+# install locally, then use `npx json2ts`
72
+npm install json-schema-to-typescript
73
74
+# or install globally, then use `json2ts`
75
+npm install json-schema-to-typescript --global
76
77
+# or install to npm cache, then use `npx --package=json-schema-to-typescript json2ts`
78
+# (you don't need to run an install command first)
79
+```
80
81
+Then, use the CLI to convert JSON files to TypeScript typings:
82
83
```sh
84
cat foo.json | json2ts > foo.d.ts
0 commit comments