str camel-case
for strings> str camel-case {flags} ...rest
...rest
: For a data structure input, convert strings at the given cell pathsinput | output |
---|---|
list<string> | list<string> |
record | record |
string | string |
table | table |
convert a string to camelCase
>'NuShell'|str camel-case
nuShell
convert a string to camelCase
>'this-is-the-first-case'|str camel-case
thisIsTheFirstCase
convert a string to camelCase
>'this_is_the_second_case'|str camel-case
thisIsTheSecondCase
convert a column from a table to camelCase
> [[lang, gems]; [nu_test, 100]] |str camel-caselang
╭───┬────────┬──────╮
│# │ lang │ gems │
├───┼────────┼──────┤
│0│nuTest│100│
╰───┴────────┴──────╯
Tips: Command str camel-case
was not included in the official binaries by default, you have to build it with --features=extra
flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/str_camel-case.html