# amayne/SwiftString

A comprehensive, lightweight string extension for Swift

Repository: https://github.com/amayne/SwiftString
Canonical: https://ross.abutalabs.com/products/swiftstring
Language: Swift
License: MIT
License Family: permissive
Last push: 2017-03-23T08:41:23+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3867, "days_push": 3450, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1608, forks 137 (observed 2026-08-28T04:05:10.739997+00:00)

## What it is
SwiftString is a lightweight Swift library providing a comprehensive set of string extension methods like between, camelize, chompLeft, and decodeHTML. It consolidates common string operations into one tested package, distributed via CocoaPods.

## Use cases
- extract substrings between delimiters in Swift
- camelize or capitalize strings in iOS apps
- decode HTML entities in Swift strings
- trim prefixes and suffixes from strings
- collapse whitespace in user input
- count substring occurrences in Swift

## When to choose
- you're on an older Swift 2.x project using CocoaPods and need handy string helpers
- you want a small, MIT-licensed utility instead of writing string boilerplate yourself

## When to avoid
- you're on modern Swift (4+) where the standard library covers many of these operations
- you need an actively maintained library — the last release was in 2017
- you need heavy-duty text processing or parsing rather than simple string helpers

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, developer-tools
- domain: developer-tools, programming-languages
- platform: -
- tags: string-manipulation, string-extensions, cocoapods, utility-library, swift, ios, macos

## Member repositories
- amayne/SwiftString (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:10.739997+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:51:20.679526+00:00, confidence not recorded.
  - readme: https://github.com/amayne/SwiftString (fetched 2026-08-28T04:05:10.739997+00:00, sha ac9e0cff6433)
- Data as of 2026-08-30T08:39:29.467469+00:00.
