string-library

String helper functions written in TypeScript

MIT License

Downloads
138
Stars
0

string-ts-library

String library is a JS/TS library which provides straight-forward, powerful functions for working with the String Object in JavaScript. Although originally builted into JavaScript and can be called by using '' or "", it can also be used with other objects and for other purposes. A TypeScript version will be included in the main library that should available for use automatically.

Table of Contents

Features

  • Capitalize the first letter
  • Capitalize all letters in a sentence
  • Removes extra spaces
  • Returns a string that is kebob case
  • Returns a string that is snake case
  • Returns a string that is camel case
  • Return a string that shift over a number that a user specifies
  • Place a hashtag in front of a string
  • Check if a string is empty, has whitespace or matches the \n or \r or \t characters

NPM

NPM Page

License

MIT