Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,23 @@ Contributions are welcome! Open a pull request to fix a bug, or open an issue to
node json-to-go.js sample.json
```

- Read JSON file on Unix systems:

```sh
./json-to-go.js sample.json
```

- Read JSON file from stdin:

```sh
node json-to-go.js < sample.json
cat sample.json | node json-to-go.js
./json-to-go.js < sample.json
cat sample.json | ./json-to-go.js
```

- For more options, check the help page

```sh
./json-to-go.js --help
```

### Credits
Expand Down
Loading