Skip to content

Programmatic execution prints to stdout #724

@joscha

Description

@joscha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions