@rocket.chat/string-helpers
Version:
Helper functions for string manipulation
92 lines (54 loc) • 2.25 kB
Markdown
<!--header-->
<p align="center">
<a href="https://rocket.chat" title="Rocket.Chat">
<img src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" alt="Rocket.Chat" />
</a>
</p>
# `@rocket.chat/string-helpers`
> Helper functions for string manipulation
---
[](https://www.npmjs.com/package/@rocket.chat/string-helpers/v/latest) [](https://www.npmjs.com/package/@rocket.chat/string-helpers/v/next)  
 
<!--/header-->
## Install
<!--install-->
Add `@rocket.chat/string-helpers` as a dependency:
```sh
npm i @rocket.chat/string-helpers
# or, if you are using yarn:
yarn add @rocket.chat/string-helpers
```
<!--/install-->
## Contributing
<!--contributing(msg)-->
Contributions, issues, and feature requests are welcome!<br />
Feel free to check the [issues](https://github.com/RocketChat/fuselage/issues).
<!--/contributing(msg)-->
### Building
As this package dependends on others in this monorepo, before anything run the following at the root directory:
<!--yarn(build)-->
```sh
yarn build
```
<!--/yarn(build)-->
### Linting
To ensure the source is matching our coding style, we perform [linting](<https://en.wikipedia.org/wiki/Lint_(software)>).
Before commiting, check if your code fits our style by running:
<!--yarn(lint)-->
```sh
yarn lint
```
<!--/yarn(lint)-->
Some linter warnings and errors can be automatically fixed:
<!--yarn(lint-and-fix)-->
```sh
yarn lint-and-fix
```
<!--/yarn(lint-and-fix)-->
### Running tests
Whenever possible, add tests to describe exactly what your code do. You can run them by yourself:
<!--yarn(test)-->
```sh
yarn test
```
<!--/yarn(test)-->