https://github.com/symind/ts2proto
TypeScript to Protocol Buffers 🍭
https://github.com/symind/ts2proto
protobuf protocol-buffers typescript
Last synced: about 1 year ago
JSON representation
TypeScript to Protocol Buffers 🍭
- Host: GitHub
- URL: https://github.com/symind/ts2proto
- Owner: SyMind
- License: mit
- Created: 2023-05-19T22:44:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T08:16:44.000Z (about 3 years ago)
- Last Synced: 2025-03-28T16:21:57.167Z (about 1 year ago)
- Topics: protobuf, protocol-buffers, typescript
- Language: TypeScript
- Homepage:
- Size: 143 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts2proto
TypeScript to Protocol Buffers 🍭
## Example
Take a TypeScript:
```ts
export class User {
name?: string;
age?: number;
}
```
Run ts2proto:
```bash
npx @ts2proto/cli foo.ts
```
GET a Protocol Buffers:
```proto
syntax = "proto3";
message User {
optional string name = 0;
optional double age = 1;
}
```
## LICENSE
MIT