{"library":"string-utility-types","title":"string-utility-types","type":"library","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install string-utility-types"],"cli":null},"imports":["import { Split } from 'string-utility-types'","import { Join } from 'string-utility-types'","import { MatchesPathPattern } from 'string-utility-types'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/string-utility-types","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { Split, Join, MatchesPathPattern, MatchesPathPatternLax } from 'string-utility-types';\n\n// Example usage\ntype Path = 'home/user/docs';\ntype Parts = Split<Path, '/'>; // ['home', 'user', 'docs']\ntype Rejoined = Join<Parts, '-'>; // 'home-user-docs'\ntype IsMatch = MatchesPathPattern<'/users/123', '/users/:id'>; // true\ntype IsMatchLax = MatchesPathPatternLax<'/users/123', '/users/:id'>; // true\n\n// Note: MatchesPathPattern may return true for interpolated strings\n// e.g., MatchesPathPattern<\"/users/${string}\", '/users/:id'> is true\n// Use MatchesPathPatternLax if you know interpolations have no slashes.","lang":"typescript","description":"Demonstrates basic usage of Split, Join, and path matching types from string-utility-types.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}