# simple-string-extensions

> A set of simple extension functions for the JavaScript String class.

Latest version **1.0.3** (published 2019-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-string-extensions
pnpm add simple-string-extensions
yarn add simple-string-extensions
bun add simple-string-extensions
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-02-26 |
| First published | 2019-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 398.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Marco Schaule |
| Maintainers | marcoschaule |
| Keywords | JavaScript string extensions |

## Links

- npm: https://www.npmjs.com/package/simple-string-extensions
- Repository: https://github.com/marcoschaule/simple-string-extensions
- Homepage: https://github.com/marcoschaule/simple-string-extensions#readme
- Issues: https://github.com/marcoschaule/simple-string-extensions/issues
- npm.io page: https://npm.io/package/simple-string-extensions

## Dependencies (1)

- [shx](https://npm.io/package/shx.md) ^0.3.2

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-02-26
- 1.0.2 — 2019-02-26
- 1.0.1 — 2019-02-25
- 1.0.0 — 2019-02-25

## README

# Simple String Extensions for TypeScript

A set of simple extensions for the JavaScript String class.

[![Build Status](https://travis-ci.org/marcoschaule/simple-string-extensions.svg?branch=master)](https://travis-ci.org/marcoschaule/simple-string-extensions)
[![NPM Status](https://img.shields.io/npm/v/simple-string-extensions.svg)](https://travis-ci.org/marcoschaule/simple-string-extensions)

## Installation and usage

In terminal/console type:

```
npm install simple-string-extensions
```

Somewhere early in code use:

```typescript
import 'simple-string-extensions';
```

Finally in code:

```typescript
const someCapitalizedStr = someStr.capitalize();
const someCamelCaseStr   = someStr.toCamelCase();
```


## Available extensions

* `capitalize`: A method to capitalize strings.
* `toCamelCase`: A method to transform strings into camel case.
* `toConstantCase`: A method to transform strings into constant case.
* `toDashCase`: A method to transform strings into dash case.
* `toPascalCase`: A method to transform strings into pascal case.
* `toSnakeCase`: A method to transform strings into snake case.
* `toSpaceCase`: A method to transform strings into space case.


## Run tests

Tests can be run with:

```
npm run test
```

---
_Source: https://npm.io/package/simple-string-extensions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
