fuwaneko / node-protobuf

Google Protocol Buffers wrapper for Node.js [UNMAINTAINED]
179 stars 42 forks source link

add lookup method #25

Closed colprog closed 10 years ago

fuwaneko commented 10 years ago

Would be nice to have a function to list all available schema in descriptor.

fuwaneko commented 10 years ago

@colprog I've added pb.info() method in v1.2.0 which returns a list of all available schemas in a descriptor. You can then use JS Array methods to lookup. Thanks for a suggestion.