Scripts by letanure

First one, simple text / string transformations

Just created a simple one, no deps, for simple text transformations

  • Remove duplicated spaces
  • Uppercase [AAA BBB]
  • Lowercase [aaa bbb]
  • Capitalize words [Aaa Bbb]
  • Snake case [aaa_bbb]
  • kebab-case [aaa-bbb]
  • camelCase [aaaBbb]
  • PascalCase [AaaBbb]
  • Remove numbers [aa1aBb2b => aaaBbb]
  • Keep only numbers [aa1aBb2b => 12]
  • Remove HTML tags
  • Remove HTML attributes
  • Remove accents & diacritics [âêì => aei]
  • URL slugfy

https://codesandbox.io/s/funny-sun-zt1ur?file=/src/index.js

https://gist.github.com/letanure/ee7db17b3b381966f61aab9812862870

Discuss Post