Skip to content

Commit 0342142

Browse files
authored
Update README.md
1 parent c334eed commit 0342142

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $ protoc --js_out=import_style=commonjs,binary:. employees.proto
1818
### Compare JSON and Protobuf Data size
1919

2020
> [max@workstation grpc-series-protobuf-js]$ ls -al
21+
2122
| Size | Filename | Method |
2223
|------|---------------|----------|
2324
| 123 | employees.json| JSON |
@@ -26,6 +27,7 @@ $ protoc --js_out=import_style=commonjs,binary:. employees.proto
2627
## Output of examples
2728

2829
> [max@workstation grpc-series-protobuf-js]$ node protobuf.js
30+
2931
```
3032
Ali name is: ALI
3133
Reza name is: REZA
@@ -36,6 +38,7 @@ Read data from bytes: 1001,ALI,50001,1002,REZA,50002,1003,JAVAD,50003
3638
```
3739

3840
> [max@workstation grpc-series-protobuf-js]$ node json.js
41+
3942
```
4043
Ali name is: ALI
4144
Reza name is: REZA
@@ -52,6 +55,7 @@ You need to install `protoc` program on your system, you can download it from ht
5255
Next you can run `bin/protoc` by typing its full path.
5356

5457
For example:
58+
5559
```bash
5660
$ /to-the-path/bin/protoc --js_out=import_style=commonjs,binary:. /your-source-path/employees.proto
5761
```

0 commit comments

Comments
 (0)