string-tool
Version:
Useful functions for Strings
48 lines (32 loc) • 1.1 kB
Markdown
# string-tool
[](https://travis-ci.org/JannesMeyer/string-tool)
[](https://david-dm.org/JannesMeyer/string-tool)
[](https://david-dm.org/JannesMeyer/string-tool#info=devDependencies)
[](https://www.npmjs.com/package/string-tool)
## Usage
**Import what you need**
```js
import { capitalize } from 'string-tool';
```
- capitalize
- nthIndexOf
- cutFirst
- cutBefore
- cutBeforeIndex
## Contributing
Download source and compile:
```sh
git clone git@github.com:JannesMeyer/string-tool.git
yarn
```
Compile and watch for file changes:
```sh
yarn start
```
Run tests:
```sh
yarn test
```
Pull requests welcome. Please respect the existing formatting and indentation style. Furthermore, please add tests for code that you contribute.
## License
[LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html)