Skip to content

Modern String Utilities

Power your text. Simplify your code.

striostrio

Quick Example

typescript
import { capitalize, slugify, truncate } from 'strio'

// Capitalize text
capitalize('hello world') // "Hello world"

// Create URL-friendly slugs
slugify('Hello World! 123') // "hello-world-123"

// Truncate long text
truncate('Lorem ipsum dolor sit amet', 10) // "Lorem ipsu..."

Why strio?

Modern JavaScript development requires reliable string utilities. strio provides a clean, intuitive API for all your text processing needs:

  • 🎯 Simple & Intuitive - Clean function names and predictable behavior
  • High Performance - Optimized for speed without sacrificing readability
  • 🛡️ Type Safe - Full TypeScript support with strict type checking
  • 📦 Tree-Shakeable - Only bundle what you use
  • 🧪 Battle Tested - Comprehensive test coverage

Installation

bash
npm install strio
bash
yarn add strio
bash
pnpm add strio
bash
bun add strio

Browser Support

strio works in all modern browsers and Node.js environments:

  • ✅ Chrome/Edge 90+
  • ✅ Firefox 88+
  • ✅ Safari 14+
  • ✅ Node.js 16+

License

MIT © Magic-B

Released under the MIT License.