str camel-case для строк
Преобразовать строку в camelCase.
Сигнатура
> str camel-case {flags} ...rest
Параметры
-
...rest: Для входной структуры данных преобразует строки по указанным путям к ячейкам.
Типы ввода/вывода:
| ввод | вывод |
|---|---|
| string | string |
| list<string> | list<string> |
| table | table |
| record | record |
Примеры
преобразовать строку в camelCase
> 'NuShell' | str camel-case nuShell
преобразовать строку в camelCase
> 'this-is-the-first-case' | str camel-case thisIsTheFirstCase
преобразовать строку в camelCase
> 'this_is_the_second_case' | str camel-case thisIsTheSecondCase
преобразовать столбец таблицы в camelCase
> [[lang, gems]; [nu_test, 100]] | str camel-case lang ╭───┬────────┬──────╮ │ # │ lang │ gems │ ├───┼────────┼──────┤ │ 0 │ nuTest │ 100 │ ╰───┴────────┴──────╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/str_camel-case.html