dev_string_converter 0.0.1 copy "dev_string_converter: ^0.0.1" to clipboard
dev_string_converter: ^0.0.1 copied to clipboard

outdatedDart 1 only

converting strings via toVarName toClassName toPolyName toTableName

##DefStringConverter #

I wrote this package since I realised I need this for quite a few projects when hitting dynamic code generation

This package helps you to convert the format of specific strings


###Input strings

"Test Title", "Test word", "test Word", "table_name", 
"poly-name", "varName", "Title", "ClassName"

###Output should be

toVarName
"testTitle", "testWord", "testWord", "tableName", 
"polyName", "varName", "title", "className"

toClassName
"TestTitle", "TestWord", "TestWord", "TableName", 
"PolyName", "VarName", "Title", "ClassName"

toPolyName
"test-title", "test-word", "test-word", "table-name", 
"poly-name", "var-name", "title", "class-name"

toTableName
"test_title", "test_word", "test_word", "table_name", 
"poly_name", "var_name", "title", "class_name"

###Example String polyName = DevStringConverter.toPolyName("CustomPolymerItem");


Enjoy ;)

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

converting strings via toVarName toClassName toPolyName toTableName

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on dev_string_converter