# capitalize-ts

> A typed capitalize helper which utilizes the Capitalize generic

Latest version **1.0.0** (published 2022-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install capitalize-ts
pnpm add capitalize-ts
yarn add capitalize-ts
bun add capitalize-ts
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-06-15 |
| First published | 2022-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | everdimension |
| Maintainers | everdimension |
| Keywords | capitalize, capitalise, first letter, typescript, helper |

## Links

- npm: https://www.npmjs.com/package/capitalize-ts
- Repository: https://github.com/everdimension/capitalize-ts
- Homepage: https://github.com/everdimension/capitalize-ts#readme
- Issues: https://github.com/everdimension/capitalize-ts/issues
- npm.io page: https://npm.io/package/capitalize-ts

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-06-15

## README

# Capitalize

A helper in typescript for capitalizing first letter in a string, leaving rest letter untouched

## Usage

```typescript
import { capitalize } from 'capitalize-ts';

capitalize('hello'); // 'Hello'
capitalize('hello, World'); // 'Hello World'
```

## Install

```sh
npm install capitalize-ts
```

## Strict Typing

Leverage the built-in [Capitalize](https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html#capitalizestringtype)
generic for more precise typing

```typescript
const result = capitalize('hello');
// type of `result` is Hello instead of string

```

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