String Manipulator
String Manipulator is a library written in vanilla JavaScript (ES6) that simplifies string manipulation by offering mutiple string manipulation functions. At the moment the library consists of one string manipulation method, it will expand to include more methods in later versions.
Capitalize string
capitalizeString() method capitalizes the first letter of a string and returns the capitalized string.
If invalid string is inputted, 'invalid string'-error will be thrown.
Use instructions
Start by importing StringManipulator. Create a new instance of StringManipulator (new StringManipulator()) and invoke the method you wish to use.