compile *.proto file to JavaScript module
Go to file
dancingCycle 5ad7e880c6 chore: rename readme 2023-02-15 14:12:16 +01:00
doc feat: adjust gtfs-rt compilation 2022-05-26 06:57:54 +02:00
js feat: add gtfs-rt compilation 2022-05-26 06:52:25 +02:00
proto feat: add gtfs-rt compilation 2022-05-26 06:52:25 +02:00
LICENSE Initial commit 2022-05-26 06:24:38 +02:00
readme.md chore: rename readme 2023-02-15 14:12:16 +01:00

readme.md

proto2js

Compile *.proto file to JavaScript module

Table of Contents

  1. General
  2. GTFS Realtime

General

This repository provides three folders for each compilation.

  1. doc: Documentation
  2. proto: Source file
  3. js: Result file

The tool used for compilation is called pbf and installed in a global fashion like this.

$ npm install -g pbf

A compilation is done by calling the following instruction.

pbf ./proto/<file.proto> > ./js/<file.js>

GTFS Realtime