简体   繁体   中英

PascalCase to camelCase, Finding and replacing in an angular proj

So, I was just wondering if there is a software or a program that identifies PascalCase and then covert it to camelCase? Or at least just identify/find the PascalCase so that I could do it myself manually. I am currently picking the cases manually and changing them from each file which feels like labor work honestly, so repetitive and boring. It would really help me out if someone knows such thing, thanks.

Work

Take a look on lodash library. It cannot determine whether string is in PascalCase or not, but it can convert anything to camelCase.
Take a look onto this function _.camelCase

_.camelCase('PascalCase') // => 'pascalCase'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM