Helper functions for string manipulation
Add @rocket.chat/string-helpers as a dependency:
npm i @rocket.chat/string-helpers
# or, if you are using yarn:
yarn add @rocket.chat/string-helpersContributions, issues, and feature requests are welcome!
Feel free to check the issues.
As this package dependends on others in this monorepo, before anything run the following at the root directory:
yarn buildTo ensure the source is matching our coding style, we perform linting. Before commiting, check if your code fits our style by running:
yarn lintSome linter warnings and errors can be automatically fixed:
yarn lint-and-fixWhenever possible, add tests to describe exactly what your code do. You can run them by yourself:
yarn test