string_case_converter 1.0.0 copy "string_case_converter: ^1.0.0" to clipboard
string_case_converter: ^1.0.0 copied to clipboard

A lightweight extension library for transforming string cases

A lightweight extension library for transforming string cases

Install #

Add the dependency to your pubspec.yaml:

dependencies:
  string_case_converter: 1.0.0

Run pub get to install.

Getting Started #

The package handles converting words to:

Camel Case

print('hello there'.toCamelCase()); // helloThere

Pascal Case

print('hello there'.toPascalCase()); // HelloThere

Kebab Case

print('hello there'.toKebabCase()); // hello-there

Snake Case

print('hello!@£(^)^%*&%^%^% there'.toSnakeCase()); // hello_there

Constant Case

print('hello there'.toConstantCase()); //  HELLO_THERE

Changelog #

For a detailed changelog, see the CHANGELOG.md file

0
likes
110
pub points
39%
popularity

Publisher

unverified uploader

A lightweight extension library for transforming string cases

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on string_case_converter