{"id":16682169,"url":"https://github.com/johnfairh/sourcemapper","last_synced_at":"2026-04-12T09:52:19.919Z","repository":{"id":46193825,"uuid":"353755516","full_name":"johnfairh/SourceMapper","owner":"johnfairh","description":"Create and edit Source Maps in Swift","archived":false,"fork":false,"pushed_at":"2024-09-19T09:54:42.000Z","size":789,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T09:12:41.251Z","etag":null,"topics":["json","linux","macos","sourcemap","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/johnfairh.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}},"created_at":"2021-04-01T16:06:48.000Z","updated_at":"2024-09-19T09:54:08.000Z","dependencies_parsed_at":"2024-04-09T09:47:20.783Z","dependency_job_id":"2209c4e2-0a21-460e-8e24-8d9c4ffac75b","html_url":"https://github.com/johnfairh/SourceMapper","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"4b38f481c9872512a3db16bc42ca15d786e273d5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfairh%2FSourceMapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfairh%2FSourceMapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfairh%2FSourceMapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfairh%2FSourceMapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnfairh","download_url":"https://codeload.github.com/johnfairh/SourceMapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234517945,"owners_count":18845722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["json","linux","macos","sourcemap","swift"],"created_at":"2024-10-12T14:06:25.755Z","updated_at":"2025-09-29T04:31:52.533Z","avatar_url":"https://github.com/johnfairh.png","language":"Swift","readme":"\u003c!--\nSourceMapper\nREADME.md\nDistributed under the MIT license, see LICENSE.\n--\u003e\n\n![Platforms](https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-green)\n[![codecov](https://codecov.io/gh/johnfairh/SourceMapper/branch/main/graph/badge.svg?token=0NAP6IA9EB)](https://codecov.io/gh/johnfairh/SourceMapper)\n![Tests](https://github.com/johnfairh/SourceMapper/workflows/Tests/badge.svg)\n\n# SourceMapper\n\nSimple Swift implementation of the\n[SourceMap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k)\nspecification: create, load, query, modify, and save source maps.\n\n## Examples\n\n```swift\nlet map = try SourceMap(Data(contentsOf: mapURL))\nprint(map.file)\n\nlet unpackedMap = try UnpackedSourceMap(map)\nlet segment = unpackedMap.map(line: 12, column: 0)\n```\n\n```swift\nvar map = SourceMap()\nmap.sources = [.remote(\"a.scss\")]\nmap.sourceRoot = \"./../src/\"\ntry map.set(segments: ..., validate: true)\nlet mapData = map.encode()\n```\n\n## Documentation\n\n* [API documentation](https://johnfairh.github.io/SourceMapper/)\n* [Dash docset](https://johnfairh.github.io/SourceMapper/docsets/SourceMapper.tgz)\n\nNo support for:\n* Extension fields\n* Index map format\n\n## Requirements\n\n* Swift 6.0\n* macOS 14 (tested on macOS 14.6.1 IA64)\n* Linux (tested on Ubuntu 18.04.5)\n* Windows 10, Swift 6.0 (tested in CI only)\n\n## Installation\n\nOnly with Swift Package Manager, via Xcode or directly:\n\nPackage dependency:\n```swift\n.package(name: \"SourceMapper\",\n         url: \"https://github.com/johnfairh/SourceMapper.git\",\n         from: \"3.0.0\")\n```\n\n## Contributions\n\nWelcome: open an issue / johnfairh@gmail.com / @johnfairh@mastodon.social\n\n## License\n\nDistributed under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfairh%2Fsourcemapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnfairh%2Fsourcemapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfairh%2Fsourcemapper/lists"}