{"id":48468456,"url":"https://github.com/nathanborror/swift-mime","last_synced_at":"2026-07-13T05:01:35.223Z","repository":{"id":319126198,"uuid":"1077695640","full_name":"nathanborror/swift-mime","owner":"nathanborror","description":"MIME encoding and decoding library for Swift.","archived":false,"fork":false,"pushed_at":"2026-04-07T04:12:14.000Z","size":235,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-07T05:34:07.991Z","etag":null,"topics":["mime","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathanborror.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-16T15:53:53.000Z","updated_at":"2026-04-07T04:12:17.000Z","dependencies_parsed_at":"2025-10-18T06:02:59.326Z","dependency_job_id":"0f1ae700-98e6-4d65-aab1-407e6961605d","html_url":"https://github.com/nathanborror/swift-mime","commit_stats":null,"previous_names":["nathanborror/swift-mime-generated","nathanborror/swift-mime"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathanborror/swift-mime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanborror","download_url":"https://codeload.github.com/nathanborror/swift-mime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35410672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mime","swift"],"created_at":"2026-04-07T05:30:55.562Z","updated_at":"2026-07-13T05:01:35.205Z","avatar_url":"https://github.com/nathanborror.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MIME\n\nA Swift package for parsing and encoding MIME formatted data (RFC 2045/2046).\n\n## Requirements\n\n- iOS 18.0+ / macOS 15.0+\n- Swift 6.2+\n\n## Installation\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/nathanborror/swift-mime.git\", branch: \"main\")\n]\n```\n\n## Quick Example\n\n```swift\nimport MIME\n\nlet mimeString = \"\"\"\nFrom: sender@example.com\nContent-Type: multipart/mixed; boundary=\"example\"\n\n--example\nContent-Type: text/plain\n\nHello, World!\n--example--\n\"\"\"\n\nlet message = try MIMEDecoder().decode(mimeString)\n\n// Access headers and parts\nprint(message.headers[\"From\"])        // \"sender@example.com\"\nprint(message.parts[0].body)          // \"Hello, World!\"\n\n// Encode back to MIME format\nlet encoded = MIMEEncoder().encode(message)\n```\n\n## Documentation\n\nFor detailed usage examples, see the test files:\n\n- `MIMETests.swift` - Decoding/encoding multipart and nested messages\n- `MIMEHeaderTests.swift` - Working with headers and duplicate headers\n- `MIMEAttributeTests.swift` - Parsing header attributes (charset, boundary, etc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanborror%2Fswift-mime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanborror%2Fswift-mime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanborror%2Fswift-mime/lists"}