{"id":19948123,"url":"https://github.com/mesqueeb/justsugar","last_synced_at":"2026-01-25T07:35:21.001Z","repository":{"id":260213563,"uuid":"805657436","full_name":"mesqueeb/JustSugar","owner":"mesqueeb","description":"🍰 JS-inspired Syntax Sugar on top of Swift to make working with Arrays/Strings/... easier","archived":false,"fork":false,"pushed_at":"2026-01-11T00:27:28.000Z","size":1788,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T08:23:17.258Z","etag":null,"topics":["array-extensions","javascript","js","js-syntax","string-extensions","swift","syntax-sugar"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/mesqueeb/justsugar/documentation/justsugar/swift","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/mesqueeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"mesqueeb","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-05-25T05:14:04.000Z","updated_at":"2026-01-11T00:27:32.000Z","dependencies_parsed_at":"2025-07-09T19:11:14.239Z","dependency_job_id":"f058a0e7-f0c0-4195-ba85-870202c5ed39","html_url":"https://github.com/mesqueeb/JustSugar","commit_stats":null,"previous_names":["mesqueeb/justsugar"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/mesqueeb/JustSugar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesqueeb%2FJustSugar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesqueeb%2FJustSugar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesqueeb%2FJustSugar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesqueeb%2FJustSugar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mesqueeb","download_url":"https://codeload.github.com/mesqueeb/JustSugar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesqueeb%2FJustSugar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28747638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["array-extensions","javascript","js","js-syntax","string-extensions","swift","syntax-sugar"],"created_at":"2024-11-13T00:39:28.504Z","updated_at":"2026-01-25T07:35:20.996Z","avatar_url":"https://github.com/mesqueeb.png","language":"Swift","funding_links":["https://github.com/sponsors/mesqueeb"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mesqueeb.github.io/SwiftVsTypeScript/justSugar\"\u003e\n    \u003cimg alt=\"logo\" src=\"https://mesqueeb.github.io/SwiftVsTypeScript/logo.png\" width=\"160\" style=\"\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# JustSugar 🍰\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmesqueeb%2FJustSugar%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/mesqueeb/JustSugar)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmesqueeb%2FJustSugar%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/mesqueeb/JustSugar)\n\n```\n.package(url: \"https://github.com/mesqueeb/JustSugar\", from: \"0.2.6\")\n```\n\nJS-inspired Syntax Sugar on top of Swift to do two things:\n1. Adds useful Array and String methods inspired by JS like `.at`, `.slice`, `.join`, etc.\n2. Adds all the most common JS Array and String methods to Swift, with deprecation warnings where Swift has an alternative that is just as good.\n  - In this case we want to prefer the Swift method, so a deprecation warning is shown when reaching for the JS method. This is perfect for new Swift developers coming from JavaScript or TypeScript.\n\n**Example of the .slice method**\n\n\u003cimg width=\"500\" alt=\"example of the slice method\" src=\"docs/public/eg-shorthands.png\" /\u003e\n\n**Example of JS methods with deprecation warning prompting to use the Swift equivalent**\n\n\u003cimg width=\"800\" alt=\"example of JS methods with deprecation warning\" src=\"docs/public/eg-deprecations.png\" /\u003e\n\n## Full Documentation\n\nSee the SPM [JustSugar documentation](https://swiftpackageindex.com/mesqueeb/justsugar/documentation/justsugar/swift) for more info.\n\n## TypeScript VS Swift Cheatsheet\n\nSee [mesqueeb.github.io/SwiftVsTypeScript](https://mesqueeb.github.io/SwiftVsTypeScript/) for a cheatsheet comparing Swift and TypeScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesqueeb%2Fjustsugar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesqueeb%2Fjustsugar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesqueeb%2Fjustsugar/lists"}