# string-tool

[![Build Status](https://travis-ci.org/JannesMeyer/string-tool.svg?branch=master)](https://travis-ci.org/JannesMeyer/string-tool)
[![Dependencies](https://david-dm.org/JannesMeyer/string-tool.svg)](https://david-dm.org/JannesMeyer/string-tool)
[![Development Dependencies](https://david-dm.org/JannesMeyer/string-tool/dev-status.svg)](https://david-dm.org/JannesMeyer/string-tool#info=devDependencies)

[![npm](https://nodei.co/npm/string-tool.png?compact=true)](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)