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