Package Exports
- @wessberg/stringutil
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wessberg/stringutil) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
StringUtil 
A class for performing simple operations on strings.
Installation
Simply do: npm install @wessberg/stringutil
.
Usage
import {StringUtil} from "@wessberg/stringutil";
const stringUtil = new StringUtil();
stringUtil.camelCase("my-string"); // returns 'myString'
stringUtil.camelCase("my string"); // returns 'myString'
stringUtil.camelCase("MY_STRING"); // returns 'myString'
stringUtil.camelCase("my-complex_string HAS a_SPACE"); // returns 'myComplexStringHasASpace'
stringUtil.allIndexesOf(/_/g, "my string has underscores _here_"); // returns [26, 31]
Changelog:
v1.0.2:
- Switched to new ts-config setup.
v1.0.1:
- Added documentation.
v1.0.0:
- First release.