Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
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.
 
 
 
 
 
 
Josh Haberman 59ea5000bb Use "node" as binary instead of "nodejs". 9 years ago
..
binary Fixed nested message scopes for CommonJS. 9 years ago
commonjs Fixed nested message scopes for CommonJS. 9 years ago
README.md Added README and enabled JavaScript tests on Node.js 9 years ago
data.proto Down-integrate from internal code base. 9 years ago
debug.js Down-integrate from internal code base. 9 years ago
debug_test.js CommonJS tests are now passing. 9 years ago
gulpfile.js Use "node" as binary instead of "nodejs". 9 years ago
jasmine.json Enable JavaScript tests for binary parse/serialize. 9 years ago
message.js Down-integrate from internal code base. 9 years ago
message_test.js Fixed nested message scopes for CommonJS. 9 years ago
node_loader.js Added README and enabled JavaScript tests on Node.js 9 years ago
package.json Fixed definition of extensions, and added CommonJS tests to Travis. 9 years ago
proto3_test.js Fixed nested message scopes for CommonJS. 9 years ago
proto3_test.proto Down-integrate from internal code base. 9 years ago
test.proto Fixed nested message scopes for CommonJS. 9 years ago
test2.proto Down-integrate from internal code base. 9 years ago
test3.proto Down-integrate from internal code base. 9 years ago
test4.proto Down-integrate from internal code base. 9 years ago
test5.proto Down-integrate from internal code base. 9 years ago
test_bootstrap.js Down-integrate from internal code base. 9 years ago
testbinary.proto Down-integrate from internal code base. 9 years ago
testempty.proto Down-integrate from internal code base. 9 years ago

README.md

This directory contains Protocol Buffer support for JavaScript. This code works in browsers and in Node.js.

The packaging work for this is still in-progress. For now you can just run the tests. First you need to build the main C++ distribution because the code generator for JavaScript is written in C++:

$ ./autogen.sh $ ./configure $ make

Then you can run the JavaScript tests in this directory:

$ cd js && gulp test