Skip to content

Commit

Permalink
docs: clarify escaping (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Dec 4, 2022
1 parent 03114a0 commit 99ae34f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,23 @@ This project is made possible by a [community of contributors](https://github.co

## CLI Usage

Run the schema generator with npx:

```bash
npx ts-json-schema-generator --path 'my/project/**/*.ts' --type 'My.Type.Name'
```

Or install the package and then run it

```bash
npm install --save ts-json-schema-generator
./node_modules/.bin/ts-json-schema-generator --path 'my/project/**/*.ts' --type 'My.Type.Name'
```

Note that different platforms (e.g. Windows) may use different path separators so you may have to adjust the command above.

Also note that you need to quote paths with `*` as otherwise the shell will expand the paths and therefore only pass the first path to the generator.

## Programmatic Usage

```js
Expand Down

0 comments on commit 99ae34f

Please sign in to comment.