grpc-node/bin
murgatroid99 cb1821a7bf Added service_packager description to bin/README.md 2015-05-13 11:08:42 -07:00
..
README.md Added service_packager description to bin/README.md 2015-05-13 11:08:42 -07:00
service_packager Initial version of service_packager script 2015-04-14 17:18:26 -07:00

README.md

Command Line Tools

Service Packager

The command line tool bin/service_packager, when called with the following command line:

service_packager proto_file -o output_path -n name -v version [-i input_path...]

Populates output_path with a node package consisting of a package.json populated with name and version, an index.js, a LICENSE file copied from gRPC, and a service.json, which is compiled from proto_file and the given input_paths. require('output_path') returns an object that is equivalent to

{ client: require('grpc').load('service.json'),
  auth: require('google-auth-library') }