summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@protobufjs/codegen/README.md
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
commit434aa8343fdcbb4d5002f934979913c099489bee (patch)
tree55bab4ec5a6151be57797d34f61faf5ea744471b /frontend-old/node_modules/@protobufjs/codegen/README.md
parent893c388d4e99442a36005e5971a87730623f946e (diff)
sdk, del
Diffstat (limited to 'frontend-old/node_modules/@protobufjs/codegen/README.md')
-rw-r--r--frontend-old/node_modules/@protobufjs/codegen/README.md49
1 files changed, 0 insertions, 49 deletions
diff --git a/frontend-old/node_modules/@protobufjs/codegen/README.md b/frontend-old/node_modules/@protobufjs/codegen/README.md
deleted file mode 100644
index 0169338..0000000
--- a/frontend-old/node_modules/@protobufjs/codegen/README.md
+++ /dev/null
@@ -1,49 +0,0 @@
-@protobufjs/codegen
-===================
-[![npm](https://img.shields.io/npm/v/@protobufjs/codegen.svg)](https://www.npmjs.com/package/@protobufjs/codegen)
-
-A minimalistic code generation utility.
-
-API
----
-
-* **codegen([functionParams: `string[]`], [functionName: string]): `Codegen`**<br />
- Begins generating a function.
-
-* **codegen.verbose = `false`**<br />
- When set to true, codegen will log generated code to console. Useful for debugging.
-
-Invoking **codegen** returns an appender function that appends code to the function's body and returns itself:
-
-* **Codegen(formatString: `string`, [...formatParams: `any`]): Codegen**<br />
- Appends code to the function's body. The format string can contain placeholders specifying the types of inserted format parameters:
-
- * `%d`: Number (integer or floating point value)
- * `%f`: Floating point value
- * `%i`: Integer value
- * `%j`: JSON.stringify'ed value
- * `%s`: String value
- * `%%`: Percent sign<br />
-
-* **Codegen([scope: `Object.<string,*>`]): `Function`**<br />
- Finishes the function and returns it.
-
-* **Codegen.toString([functionNameOverride: `string`]): `string`**<br />
- Returns the function as a string.
-
-Example
--------
-
-```js
-var codegen = require("@protobufjs/codegen");
-
-var add = codegen(["a", "b"], "add") // A function with parameters "a" and "b" named "add"
- ("// awesome comment") // adds the line to the function's body
- ("return a + b - c + %d", 1) // replaces %d with 1 and adds the line to the body
- ({ c: 1 }); // adds "c" with a value of 1 to the function's scope
-
-console.log(add.toString()); // function add(a, b) { return a + b - c + 1 }
-console.log(add(1, 2)); // calculates 1 + 2 - 1 + 1 = 3
-```
-
-**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)