dart_converters 0.0.2 copy "dart_converters: ^0.0.2" to clipboard
dart_converters: ^0.0.2 copied to clipboard

CLI to do various file conversions

Dart Converters #

A simple dart CLI to do various file conversion #


Ever get tired from changing old code to follow the current standards i.e snake_case to camelCase variable naming ?

i got the solution for you!

introducing DART CONVERTERS #

List of Commands #

  • snakeToCamel

acually there's no other command except this one currently lol

but for now break free from boring long tasks #

with one command line you can change this

class Model {
  String? first_name;
  String? last_name;
  String? email_address;
  String? PHONE_NUMBER;
}

to this

class Model {
  String? firstName;
  String? lastName;
  String? emailAddress;
  String? phoneNumber;
}

Usage: #

Pretty straight forward just add it using the activate command and you're ready to use it.

dart pub global activate dart_converters

dart_converters snakeToCamel <file_path> --apply

if you didn't add the --apply flag it will execute a dry run to preview the changes with no file modification

See also #

Flutter Queen #

2
likes
130
points
12
downloads

Publisher

verified publisherspiercer.tech

Weekly Downloads

CLI to do various file conversions

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

args

More

Packages that depend on dart_converters