v1.0 Released - Zero Dependencies

String manipulation
made simple.

The Swiss Army knife for string operations. 115+ methods, 4 API styles, TypeScript-first, with full i18n support. Zero dependencies.

$ npm install @oxog/strkit
example.ts
import { str, S } from '@oxog/strkit';

// Namespace API - organized by category
str.case.camel('hello world');        // 'helloWorld'
str.validate.email('a@b.com');       // true
str.similarity.dice('night', 'nacht'); // 0.25

// Chainable API - fluent & immutable
S('  Hello World  ')
  .trim()
  .camelCase()
  .truncate(8)
  .value;  // 'helloW...'

// i18n support - Turkish locale
str.case.upper('istanbul', { locale: 'tr' }); // 'ISTANBUL'
115+
Methods
10
Categories
0
Dependencies
15
Locales

Everything you need

Comprehensive string toolkit with all the methods you'll ever need.

4 API Styles

Choose the style that fits your codebase. All styles work with the same methods.

Namespace API str.category.method()
import { str } from '@oxog/strkit';

str.case.camel('hello world');
str.validate.email('a@b.com');
str.manipulation.truncate(text, 100);
Chainable API S(input).method().value
import { S } from '@oxog/strkit';

S('  hello world  ')
  .trim()
  .camelCase()
  .truncate(10).value;
Direct Import import { method }
import { camelCase, isEmail } from '@oxog/strkit';

camelCase('hello world');
isEmail('user@example.com');
Plugin System Extensible architecture
import { registerPlugin } from '@oxog/strkit';

registerPlugin({
  name: 'my-plugin',
  methods: { custom: () => ... }
});

Ready to simplify your string operations?

Get started in seconds. No configuration needed.