mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
20 lines
689 B
Markdown
20 lines
689 B
Markdown
@protobufjs/codegen
|
|
===================
|
|
[](https://www.npmjs.com/package/@protobufjs/codegen)
|
|
|
|
A closure for generating functions programmatically.
|
|
|
|
API
|
|
---
|
|
|
|
* **codegen(...params: `string`): `function(format: string, ...args: string): self`**<br />
|
|
Begins generating a function programmatically.
|
|
|
|
* **codegen#str([name: `string`]): `string`**<br />
|
|
Stringifies the so far generated function source.
|
|
|
|
* **codegen#eof([name?: `string`], [scope: `Object`]): `function`**<br />
|
|
Ends generation and builds the function whilst applying a scope.
|
|
|
|
**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
|