New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic execution prints to stdout #724

Closed
joscha opened this Issue Mar 24, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@joscha

joscha commented Mar 24, 2017

protobuf.js version: 6.7.0 (current HEAD on master)

When running the sample from the README:

var pbjs = require("protobufjs/cli/pbjs");

pbjs.main([ "--target", "json-module", "path/to/myproto.proto" ], function(err, output) {
    if (err)
        throw err;
    // do something with output
});

then output is undefined and the result gets printed on stdout instead.

@joscha

This comment has been minimized.

joscha commented Mar 24, 2017

Fixed in 16adff0

@joscha joscha closed this Mar 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment