{"id":22468018,"url":"https://github.com/tomokimiyauci/source-map","last_synced_at":"2026-02-23T23:35:05.226Z","repository":{"id":264522284,"uuid":"859669635","full_name":"TomokiMiyauci/source-map","owner":"TomokiMiyauci","description":"Source Map, based on TC39 spec reference implementation","archived":false,"fork":false,"pushed_at":"2024-09-23T12:47:43.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-03T23:25:06.769Z","etag":null,"topics":["source-map","tc39"],"latest_commit_sha":null,"homepage":"https://jsr.io/@miyauci/source-map","language":null,"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/TomokiMiyauci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-19T04:34:41.000Z","updated_at":"2024-09-19T04:54:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"022e4036-0f0f-4b9b-82dd-2ff2b48ba44a","html_url":"https://github.com/TomokiMiyauci/source-map","commit_stats":null,"previous_names":["tomokimiyauci/source-map"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TomokiMiyauci/source-map","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Fsource-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Fsource-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Fsource-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Fsource-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomokiMiyauci","download_url":"https://codeload.github.com/TomokiMiyauci/source-map/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Fsource-map/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29760711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T21:02:23.375Z","status":"ssl_error","status_checked_at":"2026-02-23T20:58:31.539Z","response_time":90,"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":["source-map","tc39"],"created_at":"2024-12-06T11:14:31.043Z","updated_at":"2026-02-23T23:35:05.221Z","avatar_url":"https://github.com/TomokiMiyauci.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# source-map\n\n\u003e 🚧 WIP at [beta branch](https://github.com/TomokiMiyauci/source-map/tree/beta)\n\n[Source Map](https://tc39.es/source-map/), based on TC39 spec reference\nimplementation.\n\nBased on 18 September 2024 update.\n\n## Table of Contents \u003c!-- omit in toc --\u003e\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Install\n\ndeno:\n\n```bash\ndeno add @miyauci/source-map\n```\n\nnode:\n\n```bash\nnpx jsr add @miyauci/source-map\n```\n\n## Usage\n\nHere are some modules.\n\n`decodeSourceMapFromJSONString` is the implementation of\n[decode a source map from a JSON string](https://tc39.es/source-map/#decode-a-source-map-from-a-json-string).\n\n```ts\nimport { decodeSourceMapFromJSONString } from \"@miyauci/source-map\";\n\nconst sourceMap = `{\n  \"version\": 3,\n  \"file\": \"helloworld.js\",\n  \"sources\": [\n    \"helloworld.coffee\"\n  ],\n  \"names\": [],\n  \"mappings\": \"AAAA;AAAA,EAAA,OAAO,CAAC,GAAR,CAAY,aAAZ,CAAA,CAAA;AAAA\"\n}`;\ndeclare const baseURL: URL;\n\nconst decodedSourceMap = decodeSourceMapFromJSONString(sourceMap, baseURL);\n```\n\n`extractSourceMapURLWithoutParsing` is the implementation of\n[extract a Source Map URL from JavaScript without parsing](https://tc39.es/source-map/#extract-a-source-map-url-from-javascript-without-parsing).\n\n```ts\nimport { extractSourceMapURLWithoutParsing } from \"@miyauci/source-map\";\nimport { expect } from \"@std/expect\";\n\nconst source = `// Here is source code\n\n//# sourceMappingURL=foo.js.map\n`;\n\nconst urlString = extractSourceMapURLWithoutParsing(source);\nexpect(urlString).toBe(\"foo.js.map\");\n```\n\nFor all modules, see [API](#api) section.\n\n## API\n\nSee [jsr doc](https://jsr.io/@miyauci/source-map) for all APIs.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\n[MIT](LICENSE) © 2024 Tomoki Miyauchi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomokimiyauci%2Fsource-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomokimiyauci%2Fsource-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomokimiyauci%2Fsource-map/lists"}