Skip to content

v2.0.0

Choose a tag to compare

@Awilum Awilum released this 28 Oct 20:29
  • simplify length() method.
  • add lines() method.
  • add words() method.
  • add charsFrequency() method.
  • add wordsFrequency() method.
  • add wordsSortDesc() and wordsSortAsc() methods.
  • add replaceDashes() method.
  • add replacePunctuations() method.
  • add getEncoding() and setEncoding() methods.
  • add replaceNonAlpha() method and update replaceNonAlphanumeric() method.
  • add replaceNonAlphanumeric() method.
  • add isUrl() method.
  • add isEmail() method.
  • improve stripSpaces() method.
  • rewrite method logic and rename countWords() to wordsCount()
  • rename method words() to wordsLimit() and improve tests for this method.
  • update tests for segments() method.

BREAKING CHANGES

  • USE METHOD wordsCount() INSTEAD OF countWords()
  • USE wordsLimit() INSTEAD OF words()