A TypeScript utility library providing advanced string type manipulations via template literal types. Version 2.1.0 offers types like Split, Join, ReplaceAt, and path matching utilities (MatchesPathPattern, MatchesPathPatternLax) for compile-time string processing. Released under MIT, it is actively maintained with a focus on type safety for routing and string operations. Unlike similar libraries, it provides conservative path pattern matching to avoid false negatives, with explicit documentation of limitations. Recommended for TypeScript projects needing robust string type inference.
npm install string-utility-typesVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of Split, Join, and path matching types from string-utility-types.
Use MatchesPathPatternLax if you can guarantee no slashes in interpolations.
Break down path patterns or use a different type for longer paths.
Update named imports to current API; see migration guide.
Ensure S and Delimiter are string literals, e.g., Split<'a/b', '/'>
Limit string length or use simpler types; avoid nesting.
Use 'import { Split } from 'string-utility-types'.No dependency data recorded yet.