mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
@protobufjs/codegen
A closure for generating functions programmatically.
API
-
codegen(...params:
string):function(format: string, ...args: string): self
Begins generating a function programmatically. -
codegen#str([name:
string]):string
Stringifies the so far generated function source. -
codegen#eof([name?:
string], [scope:Object]):function
Ends generation and builds the function whilst applying a scope.
License: BSD 3-Clause License