# tower-strcase

> Convert strings to `camelCase`, `snake_case`, `CONSTANT_CASE`, and other useful code-cases. **< 0.4kb** minified and gzipped.

Latest version **0.5.0** (published 2013-06-24) · 0 weekly downloads

## Install

```sh
npm install tower-strcase
pnpm add tower-strcase
yarn add tower-strcase
bun add tower-strcase
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2013-06-24 |
| First published | 2013-03-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | viatropos |

## Links

- npm: https://www.npmjs.com/package/tower-strcase
- Repository: http://github.com/tower/strcase
- npm.io page: https://npm.io/package/tower-strcase

## Recent versions

- 0.5.0 (latest) — 2013-06-24
- 0.1.0pre — 2013-06-02
- 0.1.0 — 2013-03-05

## README

# Tower String Case

Convert strings to `camelCase`, `snake_case`, `CONSTANT_CASE`, and other useful code-cases. **< 0.4kb** minified and gzipped.

## Install

node:

```
npm install tower-strcase
```

browser:

``` html
component install tower/strcase
```

## Usage

``` javascript
var strcase = require('tower-strcase')
  , cases = [
      'fooBar'
    , 'foo_bar'
    , 'FOO_BAR'
    , 'FooBar'
    , 'Foo.Bar'
    , 'Foo Bar'
    , 'foo-bar'
    , 'foo/bar'
    , 'foo.bar'
  ]

cases.forEach(function(string) {
  strcase.camelCase(string)      // "fooBar"
  strcase.snakeCase(string)      // "foo_bar"
  strcase.constantCase(string)   // "FOO_BAR"
  strcase.classCase(string)      // "FooBar"
  strcase.namespaceCase(string)  // "Foo.Bar"
  strcase.titleCase(string)      // "Foo Bar"
  strcase.paramCase(string)      // "foo-bar"
  strcase.pathCase(string)       // "foo/bar"
  strcase.dotCase(string)        // "foo.bar"
});
```

### Test

```
mocha
```

## License

MIT

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