<commit_before># Restrung-regex [![Build Status](https://travis-ci.org/restrung/restrung-regex.svg)](https://travis-ci.org/restrung/restrung-regex)

> JavaScript string helpers built with regular expression.


## Overview

This project exists solely as a learning exercise into programming in JavaScript.


## API

These are the current public functions this library supports.

### String

- camelCase
- pascalCase
- snakeCase
- [spaceCase](src/space-case.js)
- swapCase
- capitalize
- uncapitalize
- truncate
- surround
- ltrim
- trim
- rtrim
- clean

### Type

- isCamelCase
- isCapitalized
- isPascalCase
- isSnakeCase
- isSpaceCase
- isUpperCase<commit_msg>Add reference to ltrim in readme<commit_after># Restrung-regex [![Build Status](https://travis-ci.org/restrung/restrung-regex.svg)](https://travis-ci.org/restrung/restrung-regex)

> JavaScript string helpers built with regular expression.


## Overview

This project exists solely as a learning exercise into programming in JavaScript.


## API

These are the current public functions this library supports.

### String

- camelCase
- pascalCase
- snakeCase
- [spaceCase](src/space-case.js)
- swapCase
- capitalize
- uncapitalize
- truncate
- surround
- [ltrim](src/ltrim.js)
- trim
- rtrim
- clean

### Type

- isCamelCase
- isCapitalized
- isPascalCase
- isSnakeCase
- isSpaceCase
- isUpperCase
{'fraction_non_alphanumeric': 0.10906411201179071, 'fraction_numerical': 0.0, 'mean_word_length': 4.067164179104478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4167146', 'n_tokens_mistral': 453, 'n_tokens_neox': 442, 'n_words': 114}