# @stacksjs/strings

> The Stacks string utilities.

Latest version **0.74.46** (published 2026-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stacksjs/strings
pnpm add @stacksjs/strings
yarn add @stacksjs/strings
bun add @stacksjs/strings
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.74.46 |
| Published | 2026-09-11 |
| First published | 2022-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 59.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 628 |
| Author | Chris Breuer |
| Maintainers | chrisbreuer, glenn123 |
| Keywords | strings, camel case, capital case, constant case, dot case, header case, no case, param case, kebab case, pascal case, path case, sentence case, snake case, utilities, functions, stacks |

## Links

- npm: https://www.npmjs.com/package/@stacksjs/strings
- Repository: https://github.com/stacksjs/stacks
- Homepage: https://github.com/stacksjs/stacks/tree/main/storage/framework/core/strings#readme
- Issues: https://github.com/stacksjs/stacks/issues
- Funding: https://github.com/sponsors/chrisbbreuer
- npm.io page: https://npm.io/package/@stacksjs/strings

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

- 0.74.46 (latest) — 2026-09-11
- 0.74.45 — 2026-09-11
- 0.74.43 — 2026-09-11
- 0.74.42 — 2026-09-10
- 0.74.41 — 2026-09-10
- 0.74.40 — 2026-09-10
- 0.74.39 — 2026-09-10
- 0.74.38 — 2026-09-10
- 0.74.37 — 2026-09-10
- 0.74.36 — 2026-09-10
- 0.74.35 — 2026-09-10
- 0.74.34 — 2026-09-10
- 0.74.33 — 2026-09-09
- 0.74.32 — 2026-09-09
- 0.74.31 — 2026-09-08
- … 634 more at https://npm.io/package/@stacksjs/strings/versions

## README

# Stacks Strings

Easily manipulate & work with strings.

## ☘️ Features

- Easily manipulate strings
- Powerful & fast API

## 🤖 Usage

```bash
bun install -d @stacksjs/strings
```

Now, you can use it in your project:

```js
import {
  // pluralize
  addIrregularRule,
  addPluralRule,
  addSingularRule,
  addUncountableRule,
  // case
  camelCase,
  capitalCase,
  constantCase,
  dotCase,

  headerCase,
  isAlpha,
  isAlphanumeric,
  isAscii,
  isBase32,
  isBase64,
  isBoolean,
  isByteLength,
  isCreditCard,
  isCurrency,
  isDataURI,
  isDate,
  // validation
  isEmail,

  isFQDN,
  isFullWidth,
  isHalfWidth,
  isHash,
  isHexadecimal,
  isHexColor,
  isHSL,
  isIBAN,
  isIdentityCard,
  isIP,
  isIPRange,
  isISBN,
  isISIN,
  isISO8601,
  isISO31661Alpha2,
  isISO31661Alpha3,
  isISRC,
  isISSN,
  isJSON,
  isJWT,
  isLatitude,
  isLatLong,
  isLongitude,
  isMACAddress,
  isMimeType,
  isMobilePhone,
  isMongoId,
  isNumeric,
  isPlural,
  isPostalCode,
  isSingular,
  isStrongPassword,
  isURL,
  isUUID,
  kebabCase,
  noCase,
  paramCase,
  pascalCase,
  pathCase,
  plural,
  sentenceCase,
  singular,
  snakeCase,
  titleCase,
  validateUsername
} from '@stacksjs/strings'

console.log(camelCase('hello world')) // => "helloWorld"
console.log(plural('dog')) // => "dogs"
```

To view the full documentation, please visit [<https://stacksjs.com/string>s](https://stacksjs.com/strings).

## 🧪 Testing

```bash
bun test
```

## 📈 Changelog

Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.

## 🚜 Contributing

Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.

## 🏝 Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)

For casual chit-chat with others using this package:

[Join the Stacks Discord Server](https://stacksjs.com/discord)

## 🙏🏼 Credits

Many thanks to the following core technologies & people who have contributed to this package:

- [change-case](https://www.npmjs.com/package/change-case)
- [pluralize](https://www.npmjs.com/package/pluralize)
- [validation](https://www.npmjs.com/package/validation)
- [Chris Breuer](https://github.com/chrisbbreuer)
- [All Contributors](../../contributors)

## 📄 License

The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.

Made with 💙

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