@stryke/string-format 0.4.3 â 0.4.7
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 +33 -15
- package/dist/pascal-case.cjs +2 -2
- package/dist/pascal-case.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -44,28 +44,46 @@ This package is part of Storm Software's **đŠī¸ Stryke** monorepo. Stryke pac
|
|
|
44
44
|
|
|
45
45
|
<!-- END header -->
|
|
46
46
|
|
|
47
|
-
# Stryke - String Formatting
|
|
47
|
+
# Stryke - String Formatting Functions
|
|
48
48
|
|
|
49
49
|
A collection of helper functions used to manipulate string values. The functions
|
|
50
|
-
in this package are responsible for transforming strings into various formats
|
|
50
|
+
in this package are responsible for transforming strings into various formats including:
|
|
51
|
+
|
|
52
|
+
- Camel Case
|
|
53
|
+
- Kebab Case
|
|
54
|
+
- Pascal Case
|
|
55
|
+
- Snake Case
|
|
56
|
+
- Title Case
|
|
57
|
+
- Start Case
|
|
58
|
+
- Constant Case
|
|
59
|
+
- Escaped
|
|
60
|
+
- Unescaped
|
|
61
|
+
- Upper Case
|
|
62
|
+
- Lower Case
|
|
63
|
+
- Upper First
|
|
64
|
+
- Lower First
|
|
65
|
+
- Deburr
|
|
66
|
+
- Pretty Bytes
|
|
51
67
|
|
|
52
68
|
<!-- START doctoc -->
|
|
53
69
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
54
70
|
## Table of Contents
|
|
55
71
|
|
|
56
|
-
- [
|
|
57
|
-
- [
|
|
58
|
-
- [
|
|
59
|
-
- [
|
|
60
|
-
- [
|
|
61
|
-
|
|
62
|
-
- [
|
|
63
|
-
- [
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
- [
|
|
67
|
-
- [
|
|
68
|
-
- [
|
|
72
|
+
- [Stryke - String Formatting Functions](#stryke---string-formatting-functions)
|
|
73
|
+
- [Table of Contents](#table-of-contents)
|
|
74
|
+
- [Installing](#installing)
|
|
75
|
+
- [Reduced Package Size](#reduced-package-size)
|
|
76
|
+
- [Development](#development)
|
|
77
|
+
- [Building](#building)
|
|
78
|
+
- [Running unit tests](#running-unit-tests)
|
|
79
|
+
- [Linting](#linting)
|
|
80
|
+
- [Storm Workspaces](#storm-workspaces)
|
|
81
|
+
- [Roadmap](#roadmap)
|
|
82
|
+
- [Support](#support)
|
|
83
|
+
- [License](#license)
|
|
84
|
+
- [Changelog](#changelog)
|
|
85
|
+
- [Contributing](#contributing)
|
|
86
|
+
- [Contributors](#contributors)
|
|
69
87
|
|
|
70
88
|
<!-- END doctoc -->
|
|
71
89
|
|
package/dist/pascal-case.cjs
CHANGED
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.pascalCase = pascalCase;
|
|
7
|
-
function pascalCase(
|
|
8
|
-
return
|
|
7
|
+
function pascalCase(t) {
|
|
8
|
+
return t && t.split(" ").map(e => e.split("-")).flat().map(e => e.length > 0 ? e.trim().charAt(0).toUpperCase() + e.trim().slice(1) : "").join("");
|
|
9
9
|
}
|
package/dist/pascal-case.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function pascalCase(
|
|
1
|
+
export function pascalCase(t){return t&&t.split(" ").map(e=>e.split("-")).flat().map(e=>e.length>0?e.trim().charAt(0).toUpperCase()+e.trim().slice(1):"").join("")}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/string-format",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing utility functions to transform strings into various formats.",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": false,
|
|
12
12
|
"publishConfig": { "access": "public" },
|
|
13
|
-
"dependencies": { "@stryke/helpers": "^0.5.
|
|
13
|
+
"dependencies": { "@stryke/helpers": "^0.5.3", "@stryke/types": "^0.8.3" },
|
|
14
14
|
"devDependencies": {},
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"files": ["dist/**/*"],
|