@lowdefy/docs-content 0.0.0-experimental-20260710073520
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/LICENSE +201 -0
- package/README.md +20 -0
- package/content/actions/callapi.md +66 -0
- package/content/actions/callmethod.md +41 -0
- package/content/actions/copytoclipboard.md +32 -0
- package/content/actions/displaymessage.md +53 -0
- package/content/actions/downloadcsv.md +89 -0
- package/content/actions/fetch.md +50 -0
- package/content/actions/geolocationcurrentposition.md +56 -0
- package/content/actions/link.md +104 -0
- package/content/actions/login.md +85 -0
- package/content/actions/logout.md +56 -0
- package/content/actions/pdfmake.md +304 -0
- package/content/actions/request.md +67 -0
- package/content/actions/reset.md +27 -0
- package/content/actions/resetvalidation.md +85 -0
- package/content/actions/scrollto.md +85 -0
- package/content/actions/setdarkmode.md +62 -0
- package/content/actions/setfocus.md +33 -0
- package/content/actions/setglobal.md +63 -0
- package/content/actions/setlocale.md +69 -0
- package/content/actions/setstate.md +70 -0
- package/content/actions/throw.md +72 -0
- package/content/actions/validate.md +87 -0
- package/content/actions/wait.md +24 -0
- package/content/agents/agent-endpoint-tools.md +190 -0
- package/content/agents/agent-mcp-tools.md +124 -0
- package/content/agents/agent-multi-agent.md +136 -0
- package/content/agents/agent-properties.md +174 -0
- package/content/agents/agent-server-hooks.md +336 -0
- package/content/agents/agentchat.md +515 -0
- package/content/agents/agentconversations.md +148 -0
- package/content/concepts/ai-agent-docs.md +190 -0
- package/content/concepts/cli.md +213 -0
- package/content/concepts/connections-and-requests.md +7 -0
- package/content/concepts/custom-html.md +3 -0
- package/content/concepts/custom-styling.md +161 -0
- package/content/concepts/events-and-actions.md +271 -0
- package/content/concepts/hosting-files.md +18 -0
- package/content/concepts/i18n.md +320 -0
- package/content/concepts/keyboard-shortcuts.md +218 -0
- package/content/concepts/layout-overview.md +478 -0
- package/content/concepts/lists.md +144 -0
- package/content/concepts/logger.md +43 -0
- package/content/concepts/lowdefy-schema.md +365 -0
- package/content/concepts/menus.md +144 -0
- package/content/concepts/module-authoring.md +564 -0
- package/content/concepts/modules.md +338 -0
- package/content/concepts/operators.md +45 -0
- package/content/concepts/overview.md +19 -0
- package/content/concepts/references-and-templates.md +207 -0
- package/content/concepts/secrets.md +24 -0
- package/content/concepts/selectors.md +143 -0
- package/content/connections/amazonredshift.md +176 -0
- package/content/connections/anthropic.md +232 -0
- package/content/connections/awss3.md +313 -0
- package/content/connections/azureblobstorage.md +133 -0
- package/content/connections/elasticsearch.md +371 -0
- package/content/connections/google.md +228 -0
- package/content/connections/googlecloudstorage.md +139 -0
- package/content/connections/googlesheet.md +313 -0
- package/content/connections/knex.md +206 -0
- package/content/connections/mariadb.md +177 -0
- package/content/connections/mcp.md +134 -0
- package/content/connections/mongodb.md +739 -0
- package/content/connections/mssql.md +191 -0
- package/content/connections/mysql.md +192 -0
- package/content/connections/openai-connection.md +228 -0
- package/content/connections/postgresql.md +200 -0
- package/content/connections/redis.md +116 -0
- package/content/connections/sendgridmail.md +94 -0
- package/content/connections/smtp.md +149 -0
- package/content/connections/sqlite.md +187 -0
- package/content/connections/stripe.md +115 -0
- package/content/container-blocks/affix.md +413 -0
- package/content/container-blocks/alert.md +937 -0
- package/content/container-blocks/badge.md +1222 -0
- package/content/container-blocks/box.md +1453 -0
- package/content/container-blocks/card.md +1200 -0
- package/content/container-blocks/carousel.md +2247 -0
- package/content/container-blocks/collapse.md +1335 -0
- package/content/container-blocks/configprovider.md +1070 -0
- package/content/container-blocks/confirmmodal.md +1159 -0
- package/content/container-blocks/content.md +597 -0
- package/content/container-blocks/descriptions.md +870 -0
- package/content/container-blocks/drawer.md +1379 -0
- package/content/container-blocks/dropdownmenu.md +643 -0
- package/content/container-blocks/flex.md +1510 -0
- package/content/container-blocks/footer.md +380 -0
- package/content/container-blocks/googlemaps.md +546 -0
- package/content/container-blocks/googlemapsheatmap.md +607 -0
- package/content/container-blocks/googlemapsscript.md +61 -0
- package/content/container-blocks/header.md +302 -0
- package/content/container-blocks/label.md +739 -0
- package/content/container-blocks/layout.md +604 -0
- package/content/container-blocks/masonry.md +1090 -0
- package/content/container-blocks/mobilemenu.md +1244 -0
- package/content/container-blocks/modal.md +1180 -0
- package/content/container-blocks/pageheadermenu.md +614 -0
- package/content/container-blocks/pagesidebarlayout.md +438 -0
- package/content/container-blocks/pagesidermenu.md +651 -0
- package/content/container-blocks/popover.md +1421 -0
- package/content/container-blocks/result.md +972 -0
- package/content/container-blocks/sider.md +1064 -0
- package/content/container-blocks/span.md +747 -0
- package/content/container-blocks/spinner.md +267 -0
- package/content/container-blocks/splitter.md +1735 -0
- package/content/container-blocks/tabs.md +1718 -0
- package/content/container-blocks/tooltip.md +1274 -0
- package/content/container-blocks/watermark.md +515 -0
- package/content/controls/for.md +103 -0
- package/content/controls/if.md +107 -0
- package/content/controls/log.md +50 -0
- package/content/controls/parallel.md +71 -0
- package/content/controls/parallel_for.md +36 -0
- package/content/controls/reject.md +56 -0
- package/content/controls/return.md +66 -0
- package/content/controls/set_state.md +98 -0
- package/content/controls/switch.md +90 -0
- package/content/controls/throw.md +79 -0
- package/content/controls/try.md +88 -0
- package/content/deployment/docker.md +149 -0
- package/content/deployment/node-server.md +27 -0
- package/content/deployment/vercel.md +101 -0
- package/content/display-blocks/aggrid.md +1459 -0
- package/content/display-blocks/anchor.md +336 -0
- package/content/display-blocks/avatar.md +1154 -0
- package/content/display-blocks/breadcrumb.md +517 -0
- package/content/display-blocks/button.md +758 -0
- package/content/display-blocks/calendar.md +156 -0
- package/content/display-blocks/dangeroushtml.md +314 -0
- package/content/display-blocks/dangerousmarkdown.md +423 -0
- package/content/display-blocks/diffgit.md +44 -0
- package/content/display-blocks/difflist.md +225 -0
- package/content/display-blocks/diffsidebyside.md +56 -0
- package/content/display-blocks/difftimeline.md +94 -0
- package/content/display-blocks/divider.md +406 -0
- package/content/display-blocks/download.md +60 -0
- package/content/display-blocks/dropdownbutton.md +661 -0
- package/content/display-blocks/echart.md +418 -0
- package/content/display-blocks/floatbutton.md +545 -0
- package/content/display-blocks/html.md +311 -0
- package/content/display-blocks/icon.md +717 -0
- package/content/display-blocks/img.md +479 -0
- package/content/display-blocks/markdown.md +520 -0
- package/content/display-blocks/markdownwithcode.md +730 -0
- package/content/display-blocks/menu.md +1123 -0
- package/content/display-blocks/message.md +941 -0
- package/content/display-blocks/notification.md +1410 -0
- package/content/display-blocks/paragraph.md +643 -0
- package/content/display-blocks/progress.md +818 -0
- package/content/display-blocks/qrcode.md +519 -0
- package/content/display-blocks/s3download.md +240 -0
- package/content/display-blocks/search.md +360 -0
- package/content/display-blocks/skeleton.md +272 -0
- package/content/display-blocks/skeletonavatar.md +222 -0
- package/content/display-blocks/skeletonbutton.md +245 -0
- package/content/display-blocks/skeletoninput.md +223 -0
- package/content/display-blocks/skeletonparagraph.md +201 -0
- package/content/display-blocks/statistic.md +485 -0
- package/content/display-blocks/steps.md +585 -0
- package/content/display-blocks/tag.md +620 -0
- package/content/display-blocks/title.md +654 -0
- package/content/display-blocks/tour.md +2359 -0
- package/content/input-blocks/autocomplete.md +786 -0
- package/content/input-blocks/buttonselector.md +964 -0
- package/content/input-blocks/checkboxselector.md +765 -0
- package/content/input-blocks/checkboxswitch.md +497 -0
- package/content/input-blocks/colorselector.md +884 -0
- package/content/input-blocks/daterangeselector.md +777 -0
- package/content/input-blocks/dateselector.md +693 -0
- package/content/input-blocks/datetimeselector.md +791 -0
- package/content/input-blocks/inputgallery.md +528 -0
- package/content/input-blocks/monthselector.md +717 -0
- package/content/input-blocks/multipleselector.md +1337 -0
- package/content/input-blocks/numberinput.md +855 -0
- package/content/input-blocks/pagination.md +679 -0
- package/content/input-blocks/paragraphinput.md +1664 -0
- package/content/input-blocks/passwordinput.md +480 -0
- package/content/input-blocks/phonenumberinput.md +688 -0
- package/content/input-blocks/radioselector.md +820 -0
- package/content/input-blocks/ratingslider.md +684 -0
- package/content/input-blocks/s3uploadbutton.md +384 -0
- package/content/input-blocks/s3uploaddragger.md +305 -0
- package/content/input-blocks/s3uploadphoto.md +288 -0
- package/content/input-blocks/segmentedselector.md +782 -0
- package/content/input-blocks/selector.md +1162 -0
- package/content/input-blocks/switch.md +552 -0
- package/content/input-blocks/textarea.md +714 -0
- package/content/input-blocks/textinput.md +639 -0
- package/content/input-blocks/tiptapinput.md +226 -0
- package/content/input-blocks/tiptapmentioninput.md +471 -0
- package/content/input-blocks/titleinput.md +1094 -0
- package/content/input-blocks/treeinput.md +144 -0
- package/content/input-blocks/treemultipleselector.md +162 -0
- package/content/input-blocks/treeselector.md +185 -0
- package/content/input-blocks/upload.md +149 -0
- package/content/input-blocks/uploaddragger.md +85 -0
- package/content/input-blocks/uploadphoto.md +84 -0
- package/content/input-blocks/weekselector.md +630 -0
- package/content/list-blocks/controlledlist.md +498 -0
- package/content/list-blocks/list.md +529 -0
- package/content/list-blocks/listselector.md +301 -0
- package/content/list-blocks/masonrylist.md +230 -0
- package/content/migration/upgrade-guide.md +106 -0
- package/content/migration/v4-to-v5.md +589 -0
- package/content/migration/v5-to-v6.md +36 -0
- package/content/operators/_actions.md +58 -0
- package/content/operators/_and.md +76 -0
- package/content/operators/_api.md +254 -0
- package/content/operators/_app.md +114 -0
- package/content/operators/_args.md +65 -0
- package/content/operators/_array.md +331 -0
- package/content/operators/_base64.md +49 -0
- package/content/operators/_boolean.md +33 -0
- package/content/operators/_build.md +166 -0
- package/content/operators/_change_case.md +357 -0
- package/content/operators/_date.md +415 -0
- package/content/operators/_dayjs.md +128 -0
- package/content/operators/_diff.md +61 -0
- package/content/operators/_divide.md +32 -0
- package/content/operators/_eq.md +52 -0
- package/content/operators/_event.md +86 -0
- package/content/operators/_function.md +52 -0
- package/content/operators/_get.md +92 -0
- package/content/operators/_global.md +86 -0
- package/content/operators/_gt.md +50 -0
- package/content/operators/_gte.md +50 -0
- package/content/operators/_hash.md +112 -0
- package/content/operators/_if.md +30 -0
- package/content/operators/_if_none.md +47 -0
- package/content/operators/_index.md +48 -0
- package/content/operators/_input.md +86 -0
- package/content/operators/_intl.md +135 -0
- package/content/operators/_item.md +166 -0
- package/content/operators/_js.md +113 -0
- package/content/operators/_json.md +120 -0
- package/content/operators/_jsonata.md +152 -0
- package/content/operators/_locale.md +65 -0
- package/content/operators/_location.md +40 -0
- package/content/operators/_log.md +22 -0
- package/content/operators/_lt.md +50 -0
- package/content/operators/_lte.md +50 -0
- package/content/operators/_math.md +407 -0
- package/content/operators/_media.md +83 -0
- package/content/operators/_menu.md +62 -0
- package/content/operators/_module.md +340 -0
- package/content/operators/_mql.md +95 -0
- package/content/operators/_ne.md +62 -0
- package/content/operators/_not.md +33 -0
- package/content/operators/_number.md +159 -0
- package/content/operators/_nunjucks.md +117 -0
- package/content/operators/_object.md +253 -0
- package/content/operators/_operator.md +33 -0
- package/content/operators/_or.md +67 -0
- package/content/operators/_product.md +45 -0
- package/content/operators/_random.md +90 -0
- package/content/operators/_ref.md +80 -0
- package/content/operators/_regex.md +69 -0
- package/content/operators/_request.md +35 -0
- package/content/operators/_request_details.md +29 -0
- package/content/operators/_secret.md +56 -0
- package/content/operators/_state.md +134 -0
- package/content/operators/_step.md +98 -0
- package/content/operators/_string.md +327 -0
- package/content/operators/_subtract.md +24 -0
- package/content/operators/_sum.md +45 -0
- package/content/operators/_switch.md +37 -0
- package/content/operators/_t.md +96 -0
- package/content/operators/_theme.md +65 -0
- package/content/operators/_type.md +78 -0
- package/content/operators/_uri.md +49 -0
- package/content/operators/_url_query.md +92 -0
- package/content/operators/_user.md +154 -0
- package/content/operators/_uuid.md +118 -0
- package/content/operators/_var.md +88 -0
- package/content/operators/_yaml.md +96 -0
- package/content/other/introduction.md +39 -0
- package/content/other/next-auth-providers.md +3 -0
- package/content/other/updatesession.md +26 -0
- package/content/plugins/plugins-actions.md +80 -0
- package/content/plugins/plugins-connections.md +98 -0
- package/content/plugins/plugins-dev.md +138 -0
- package/content/plugins/plugins-introduction.md +29 -0
- package/content/plugins/plugins-operators.md +71 -0
- package/content/testing/e2e-auth.md +108 -0
- package/content/testing/e2e-configuration.md +107 -0
- package/content/testing/e2e-getting-started.md +96 -0
- package/content/testing/e2e-introduction.md +53 -0
- package/content/testing/e2e-mocking.md +155 -0
- package/content/testing/e2e-writing-tests.md +214 -0
- package/content/tutorial/tutorial-actions-operators.md +222 -0
- package/content/tutorial/tutorial-add-blocks.md +86 -0
- package/content/tutorial/tutorial-create-page.md +57 -0
- package/content/tutorial/tutorial-display-data-page.md +181 -0
- package/content/tutorial/tutorial-next-steps.md +53 -0
- package/content/tutorial/tutorial-requests-sql.md +22 -0
- package/content/tutorial/tutorial-start.md +71 -0
- package/content/user-authentication/auth-providers.md +15 -0
- package/content/user-authentication/login-and-logout.md +122 -0
- package/content/user-authentication/users-introduction.md +31 -0
- package/index.json +2281 -0
- package/package.json +34 -0
- package/scripts/extractAgentDocs.js +130 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
# _change_case
|
|
2
|
+
|
|
3
|
+
The `_change_case` operator uses the [`change-case`](https://www.npmjs.com/package/change-case) package to transform an input between camelCase, PascalCase, Capital Case, snake_case, param-case, CONSTANT_CASE and others.
|
|
4
|
+
|
|
5
|
+
#### Arguments
|
|
6
|
+
|
|
7
|
+
The `_change_case` operator takes `on` and `options` as arguments.
|
|
8
|
+
The `on` argument is the input to be transformed and can be a `string`, `array` or `object`.
|
|
9
|
+
The `options` argument is an object with the following properties:
|
|
10
|
+
- `convertKeys`: Only used when `on` is an object. Toggles whether the object keys are converted to the new case (`true`) or left as-is (`false`). Default `false`.
|
|
11
|
+
- `convertValues`: Only used when `on` is an object. Toggles whether the object values are converted to the new case (`true`) or left as-is (`false`). Default `true`.
|
|
12
|
+
- `delimiter`: Value used between words (e.g. " ").
|
|
13
|
+
- `locale`: Lower/upper according to specified locale, defaults to host environment. Set to false to disable.
|
|
14
|
+
- `mergeAmbiguousCharacters`: By default, pascalCase and snakeCase separate ambiguous characters with _. To merge them instead, set mergeAmbiguousCharacters to true.
|
|
15
|
+
- `prefixCharacters``: A string that specifies characters to retain at the beginning of the string. Defaults to "".
|
|
16
|
+
- `split`: A function to define how the input is split into words.
|
|
17
|
+
- `suffixCharacters``: A string that specifies characters to retain at the end of the string. Defaults to "".
|
|
18
|
+
|
|
19
|
+
The `on` argument behaves as follows:
|
|
20
|
+
###### string
|
|
21
|
+
Transforms the case of the string.
|
|
22
|
+
|
|
23
|
+
###### array
|
|
24
|
+
Transform the case of each string in the array.
|
|
25
|
+
|
|
26
|
+
###### object
|
|
27
|
+
Transforms the case of the values (when `options.convertValues: true`) and keys (when `options.convertKeys: true`) of the object.
|
|
28
|
+
|
|
29
|
+
> Note that the `key` and `value` pairs must be strings.
|
|
30
|
+
|
|
31
|
+
#### Examples
|
|
32
|
+
|
|
33
|
+
###### String with no options:
|
|
34
|
+
```yaml
|
|
35
|
+
_change_case.capitalCase:
|
|
36
|
+
on: 'foo bar'
|
|
37
|
+
```
|
|
38
|
+
Returns: `"Foo Bar"`
|
|
39
|
+
|
|
40
|
+
###### Array with no options:
|
|
41
|
+
```yaml
|
|
42
|
+
_change_case.capitalCase:
|
|
43
|
+
on:
|
|
44
|
+
- 'foo'
|
|
45
|
+
- 'bar'
|
|
46
|
+
```
|
|
47
|
+
Returns: `["Foo", "Bar"]`
|
|
48
|
+
|
|
49
|
+
###### Object with no options:
|
|
50
|
+
```yaml
|
|
51
|
+
_change_case.capitalCase:
|
|
52
|
+
on:
|
|
53
|
+
foo: 'bar'
|
|
54
|
+
```
|
|
55
|
+
Returns: `{ "foo": "Bar" }`
|
|
56
|
+
|
|
57
|
+
###### Object with options.convertKeys: true:
|
|
58
|
+
```yaml
|
|
59
|
+
_change_case.capitalCase:
|
|
60
|
+
on:
|
|
61
|
+
foo: 'bar'
|
|
62
|
+
options:
|
|
63
|
+
convertKeys: true
|
|
64
|
+
```
|
|
65
|
+
Returns: `{ "Foo": "Bar" }`
|
|
66
|
+
|
|
67
|
+
###### Object with options.convertValues: false:
|
|
68
|
+
```yaml
|
|
69
|
+
_change_case.capitalCase:
|
|
70
|
+
on:
|
|
71
|
+
foo: 'bar'
|
|
72
|
+
options:
|
|
73
|
+
convertValues: false
|
|
74
|
+
```
|
|
75
|
+
Returns: `{ "foo": "bar" }`
|
|
76
|
+
|
|
77
|
+
###### Object with options.SPLT:
|
|
78
|
+
```yaml
|
|
79
|
+
_change_case.capitalCase:
|
|
80
|
+
on: this123is_an example string
|
|
81
|
+
options:
|
|
82
|
+
split:
|
|
83
|
+
_function:
|
|
84
|
+
__string.split:
|
|
85
|
+
- __string.replace:
|
|
86
|
+
- __args: 0
|
|
87
|
+
- '123'
|
|
88
|
+
- '_'
|
|
89
|
+
- '_'
|
|
90
|
+
```
|
|
91
|
+
Returns: `This Is An example string`
|
|
92
|
+
|
|
93
|
+
# Operator methods:
|
|
94
|
+
|
|
95
|
+
## _change_case.camelCase
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
({on: string, options: object}): string
|
|
99
|
+
([on: string, options: object]): string
|
|
100
|
+
({on: object, options: object}): object
|
|
101
|
+
([on: object, options: object]): object
|
|
102
|
+
({on: array, options: object}): array
|
|
103
|
+
([on: array, options: object]): array
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
The `_change_case.camelCase` method transforms `on` into a string with the separator denoted by the next word capitalized.
|
|
107
|
+
|
|
108
|
+
#### Examples
|
|
109
|
+
|
|
110
|
+
###### Transform snake_case variable to camelCase:
|
|
111
|
+
```yaml
|
|
112
|
+
_change_case.camelCase:
|
|
113
|
+
on: 'my_variable'
|
|
114
|
+
```
|
|
115
|
+
Returns: `"myVariable"`
|
|
116
|
+
|
|
117
|
+
## _change_case.capitalCase
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
({on: string, options: object}): string
|
|
121
|
+
([on: string, options: object]): string
|
|
122
|
+
({on: object, options: object}): object
|
|
123
|
+
([on: object, options: object]): object
|
|
124
|
+
({on: array, options: object}): array
|
|
125
|
+
([on: array, options: object]): array
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The `_change_case.capitalCase` method transforms `on` into a space separated string with each word capitalized.
|
|
129
|
+
|
|
130
|
+
#### Examples
|
|
131
|
+
|
|
132
|
+
###### Transform snake_case variable to capitalCase:
|
|
133
|
+
```yaml
|
|
134
|
+
_change_case.capitalCase:
|
|
135
|
+
on: 'my_variable'
|
|
136
|
+
```
|
|
137
|
+
Returns: `"My Variable"`
|
|
138
|
+
|
|
139
|
+
## _change_case.constantCase
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
({on: string, options: object}): string
|
|
143
|
+
([on: string, options: object]): string
|
|
144
|
+
({on: object, options: object}): object
|
|
145
|
+
([on: object, options: object]): object
|
|
146
|
+
({on: array, options: object}): array
|
|
147
|
+
([on: array, options: object]): array
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
The `_change_case.constantCase` method transforms `on` into upper case string with an underscore between words.
|
|
151
|
+
|
|
152
|
+
#### Examples
|
|
153
|
+
|
|
154
|
+
###### Transform camelCase variable to constantCase:
|
|
155
|
+
```yaml
|
|
156
|
+
_change_case.constantCase:
|
|
157
|
+
on: 'myVariable'
|
|
158
|
+
```
|
|
159
|
+
Returns: `"MY_VARIABLE"`
|
|
160
|
+
|
|
161
|
+
## _change_case.dotCase
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
({on: string, options: object}): string
|
|
165
|
+
([on: string, options: object]): string
|
|
166
|
+
({on: object, options: object}): object
|
|
167
|
+
([on: object, options: object]): object
|
|
168
|
+
({on: array, options: object}): array
|
|
169
|
+
([on: array, options: object]): array
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
The `_change_case.dotCase` method transforms `on` into a lower case string with a period between words.
|
|
173
|
+
|
|
174
|
+
#### Examples
|
|
175
|
+
|
|
176
|
+
###### Transform camelCase variable to dotCase:
|
|
177
|
+
```yaml
|
|
178
|
+
_change_case.dotCase:
|
|
179
|
+
on: 'myVariable'
|
|
180
|
+
```
|
|
181
|
+
Returns: `"my.variable"`
|
|
182
|
+
|
|
183
|
+
## _change_case.kebabCase
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
({on: string, options: object}): string
|
|
187
|
+
([on: string, options: object]): string
|
|
188
|
+
({on: object, options: object}): object
|
|
189
|
+
([on: object, options: object]): object
|
|
190
|
+
({on: array, options: object}): array
|
|
191
|
+
([on: array, options: object]): array
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
The `_change_case.kebabCase` method transforms `on` into a lower cased string with dashes between words.
|
|
195
|
+
|
|
196
|
+
#### Examples
|
|
197
|
+
|
|
198
|
+
###### Transform snake_case variable to kebabCase:
|
|
199
|
+
```yaml
|
|
200
|
+
_change_case.kebabCase:
|
|
201
|
+
on: 'my_variable'
|
|
202
|
+
```
|
|
203
|
+
Returns: `"my-variable"`
|
|
204
|
+
|
|
205
|
+
## _change_case.noCase
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
({on: string, options: object}): string
|
|
209
|
+
([on: string, options: object]): string
|
|
210
|
+
({on: object, options: object}): object
|
|
211
|
+
([on: object, options: object]): object
|
|
212
|
+
({on: array, options: object}): array
|
|
213
|
+
([on: array, options: object]): array
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
The `_change_case.noCase` method transforms `on` into a lower cased string with spaces between words.
|
|
217
|
+
|
|
218
|
+
#### Examples
|
|
219
|
+
|
|
220
|
+
###### Transform camelCase variable to noCase:
|
|
221
|
+
```yaml
|
|
222
|
+
_change_case.noCase:
|
|
223
|
+
on: 'myVariable'
|
|
224
|
+
```
|
|
225
|
+
Returns: `"my variable"`
|
|
226
|
+
|
|
227
|
+
## _change_case.pascalCase
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
({on: string, options: object}): string
|
|
231
|
+
([on: string, options: object]): string
|
|
232
|
+
({on: object, options: object}): object
|
|
233
|
+
([on: object, options: object]): object
|
|
234
|
+
({on: array, options: object}): array
|
|
235
|
+
([on: array, options: object]): array
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
The `_change_case.pascalCase` method transforms `on` into a string of capitalized words without separators.
|
|
239
|
+
|
|
240
|
+
#### Examples
|
|
241
|
+
|
|
242
|
+
###### Transform snake_case variable to pascalCase:
|
|
243
|
+
```yaml
|
|
244
|
+
_change_case.pascalCase:
|
|
245
|
+
on: 'my_variable'
|
|
246
|
+
```
|
|
247
|
+
Returns: `"MyVariable"`
|
|
248
|
+
|
|
249
|
+
## _change_case.pascalSnakeCase
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
({on: string, options: object}): string
|
|
253
|
+
([on: string, options: object]): string
|
|
254
|
+
({on: object, options: object}): object
|
|
255
|
+
([on: object, options: object]): object
|
|
256
|
+
({on: array, options: object}): array
|
|
257
|
+
([on: array, options: object]): array
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
The `_change_case.pascalSnakeCase` method transforms `on` into a string of capitalized words with underscores between words.
|
|
261
|
+
|
|
262
|
+
#### Examples
|
|
263
|
+
|
|
264
|
+
###### Transform snake_case variable to pascalSnakeCase:
|
|
265
|
+
```yaml
|
|
266
|
+
_change_case.pascalCase:
|
|
267
|
+
on: 'my_variable'
|
|
268
|
+
```
|
|
269
|
+
Returns: `"My_Variable"`
|
|
270
|
+
|
|
271
|
+
## _change_case.pathCase
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
({on: string, options: object}): string
|
|
275
|
+
([on: string, options: object]): string
|
|
276
|
+
({on: object, options: object}): object
|
|
277
|
+
([on: object, options: object]): object
|
|
278
|
+
({on: array, options: object}): array
|
|
279
|
+
([on: array, options: object]): array
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
The `_change_case.pathCase` method transforms `on` into a lower case string with slashes between words.
|
|
283
|
+
|
|
284
|
+
#### Examples
|
|
285
|
+
|
|
286
|
+
###### Transform snake_case variable to pathCase:
|
|
287
|
+
```yaml
|
|
288
|
+
_change_case.pathCase:
|
|
289
|
+
on: 'my_variable'
|
|
290
|
+
```
|
|
291
|
+
Returns: `my/variable`
|
|
292
|
+
|
|
293
|
+
## _change_case.sentenceCase
|
|
294
|
+
|
|
295
|
+
```
|
|
296
|
+
({on: string, options: object}): string
|
|
297
|
+
([on: string, options: object]): string
|
|
298
|
+
({on: object, options: object}): object
|
|
299
|
+
([on: object, options: object]): object
|
|
300
|
+
({on: array, options: object}): array
|
|
301
|
+
([on: array, options: object]): array
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
The `_change_case.sentenceCase` method transforms `on` into a lower case with spaces between words, then capitalize the first word.
|
|
305
|
+
|
|
306
|
+
#### Examples
|
|
307
|
+
|
|
308
|
+
###### Transform snake_case variable to sentenceCase:
|
|
309
|
+
```yaml
|
|
310
|
+
_change_case.sentenceCase:
|
|
311
|
+
on: 'my_variable'
|
|
312
|
+
```
|
|
313
|
+
Returns: `"My variable"`
|
|
314
|
+
|
|
315
|
+
## _change_case.snakeCase
|
|
316
|
+
|
|
317
|
+
```
|
|
318
|
+
({on: string, options: object}): string
|
|
319
|
+
([on: string, options: object]): string
|
|
320
|
+
({on: object, options: object}): object
|
|
321
|
+
([on: object, options: object]): object
|
|
322
|
+
({on: array, options: object}): array
|
|
323
|
+
([on: array, options: object]): array
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
The `_change_case.snakeCase` method transforms `on` into a lower case string with underscores between words.
|
|
327
|
+
|
|
328
|
+
#### Examples
|
|
329
|
+
|
|
330
|
+
###### Transform sentence case variable to snakeCase:
|
|
331
|
+
```yaml
|
|
332
|
+
_change_case.snakeCase:
|
|
333
|
+
on: 'My variable'
|
|
334
|
+
```
|
|
335
|
+
Returns: `"my_variable"`
|
|
336
|
+
|
|
337
|
+
## _change_case.trainCase
|
|
338
|
+
|
|
339
|
+
```
|
|
340
|
+
({on: string, options: object}): string
|
|
341
|
+
([on: string, options: object]): string
|
|
342
|
+
({on: object, options: object}): object
|
|
343
|
+
([on: object, options: object]): object
|
|
344
|
+
({on: array, options: object}): array
|
|
345
|
+
([on: array, options: object]): array
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
The `_change_case.trainCase` method transforms `on` into a dash separated string of capitalized words.
|
|
349
|
+
|
|
350
|
+
#### Examples
|
|
351
|
+
|
|
352
|
+
###### Transform snake_case variable to trainCase:
|
|
353
|
+
```yaml
|
|
354
|
+
_change_case.trainCase:
|
|
355
|
+
on: 'my_variable'
|
|
356
|
+
```
|
|
357
|
+
Returns: `"My-Variable"`
|