compile *.proto file to JavaScript module
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
dancesWithCycles 5ad7e880c6 chore: rename readme 1 month ago
doc feat: adjust gtfs-rt compilation 10 months ago
js feat: add gtfs-rt compilation 10 months ago
proto feat: add gtfs-rt compilation 10 months ago
LICENSE Initial commit 10 months ago
readme.md chore: rename readme 1 month ago

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