# tn-case

> Convert different naming convention

Latest version **3.0.1** (published 2021-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install tn-case
pnpm add tn-case
yarn add tn-case
bun add tn-case
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2021-05-10 |
| First published | 2020-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Turnova |
| Maintainers | turnova |
| Keywords | kebab-case, snake-case, dot-case, camel-case, pascal-case, space-case, custom-case |

## Links

- npm: https://www.npmjs.com/package/tn-case
- npm.io page: https://npm.io/package/tn-case

## Dependencies (2)

- [tn-capitalize](https://npm.io/package/tn-capitalize.md) ^1.1.3
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.10.4

## 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

- 3.0.1 (latest) — 2021-05-10
- 3.0.0 — 2021-05-10
- 2.0.0 — 2020-07-16
- 1.0.0 — 2020-07-10

## README

<p align="center"><i>Bundle Size - 391 bytes gzipped</i></p>

## Usage

```ts
import { kebabCase, snakeCase, dotCase, camelCase, pascalCase, spaceCase, customCase } from 'tn-case'
const string = 'lorem ipsum'

kebabCase(string) // lorem-ipsum
snakeCase(string) // lorem_ipsum
dotCase(string) // lorem.ipsum
camelCase(string) // loremIpsum
pascalCase(string) // LoremIpsum
spaceCase(string) // lorem ipsum
customCase(string, '+') // lorem+ipsum
```

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