@cobol-ts/template 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @cobol-ts/template
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Quick orientation
|
|
6
|
+
|
|
7
|
+
**Responsibility.** Expand named variables in text using selectable delimiter grammars and replacement functions.
|
|
8
|
+
|
|
9
|
+
**Boundary.** Template dereferencing is a string transformation, not arbitrary JavaScript execution.
|
|
10
|
+
|
|
11
|
+
**Public modules.** [variables.ts](./src/variables.ts), [stringFunctions.ts](./src/stringFunctions.ts), [variableDefn.ts](./src/variableDefn.ts).
|
|
12
|
+
|
|
13
|
+
**Tests.** [dot.language.spec.ts](src/dot.language.spec.ts), [variables.spec.ts](src/variables.spec.ts)
|
|
14
|
+
|
|
15
|
+
**Related packages.** [@cobol-ts/codegen](../../codegen/codegen/README.md) · [@cobol-ts/string_utils](../strings/README.md).
|
|
16
|
+
|
|
3
17
|
## Purpose
|
|
4
18
|
|
|
5
19
|
This module expands variables in text using a configurable delimiter syntax and an object dictionary. It supports alternative variable definitions and value-transforming functions, rather than compiling or executing arbitrary TypeScript templates.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/template",
|
|
3
3
|
"description": "A small template language",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cobol-ts/errors": "0.0.
|
|
21
|
-
"@cobol-ts/records": "0.0.
|
|
22
|
-
"@cobol-ts/safe": "0.0.
|
|
20
|
+
"@cobol-ts/errors": "0.0.16",
|
|
21
|
+
"@cobol-ts/records": "0.0.16",
|
|
22
|
+
"@cobol-ts/safe": "0.0.16"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"typescript": "^5.2.2",
|