Better error handling for input
- Checking if string inpug is actually a string.
- Added test for CJS and ESM. Throwing error on array fed to function instead of string.
- Changed from
let
toconst
in readme examples since nothing is changing with the variables