Proto uses ECMAScript 6 as its foundation and compiles to ECMAScript 5.
npm install protolang
In a JS project:
var proto = require('protolang'); var jsSource = proto.transpile(protoSource); // ...
There is also a
tools/ directory with a command-line compiler (
protoc) and a simple server (
$ node protoc /path/to/file.proto
$ node server /path/to/root/dir --port 3000 Server running on port 3000
This simple server can be useful when developing Proto scripts so that you don't have to constantly compile them. It will only serve
Please see the following links for more information on Proto.