@cobol-ts/string_utils 0.0.13 → 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 +12 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
# @cobol-ts/string_utils
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Provide naming, segmentation and display-string helpers for configuration and generated identifiers.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
These are domain naming conventions, not guaranteed collision-free filesystem encoders.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Scope
|
|
8
8
|
|
|
9
|
-
`camelCaseToWords`, `camelCase
|
|
9
|
+
Naming helpers include `camelCaseToWords`, `camelCase`, `capitalizeFirstLetter`, `safeId`, `toGitStoragePath` and `ellipsesInMiddle`. `firstSegment`, `lastSegment` and `allButLastSegment` operate on path-like text.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
These transformations are conventional and can lose information. Verify exact outputs before using their results as persistent file, customer or graph identifiers.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## Source and tests
|
|
14
|
+
|
|
15
|
+
**Public entry points:** [strings.utilities.ts](./src/strings.utilities.ts).
|
|
16
|
+
|
|
17
|
+
**Tests:** [string.utilties.spec.ts](src/string.utilties.spec.ts)
|
|
18
|
+
|
|
19
|
+
**Related:** [@cobol-ts/file-catalogue](../../config/file-catalogue/README.md) · [@cobol-ts/records](../records/README.md).
|