{"id":13452519,"url":"https://github.com/auchenberg/element-to-source","last_synced_at":"2025-04-23T11:31:46.070Z","repository":{"id":136722145,"uuid":"169832135","full_name":"auchenberg/element-to-source","owner":"auchenberg","description":"Providing utility to map a DOM element to source information, using debug metadata provided by (some) frameworks.","archived":false,"fork":false,"pushed_at":"2019-05-28T03:21:39.000Z","size":5,"stargazers_count":34,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T18:56:03.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/auchenberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-09T04:38:18.000Z","updated_at":"2023-09-08T17:50:15.000Z","dependencies_parsed_at":"2024-01-16T03:57:28.675Z","dependency_job_id":null,"html_url":"https://github.com/auchenberg/element-to-source","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Felement-to-source","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Felement-to-source/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Felement-to-source/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auchenberg%2Felement-to-source/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auchenberg","download_url":"https://codeload.github.com/auchenberg/element-to-source/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223922085,"owners_count":17225636,"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":[],"created_at":"2024-07-31T07:01:26.448Z","updated_at":"2024-11-10T07:11:44.795Z","avatar_url":"https://github.com/auchenberg.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# element-to-source\n-------------------\n\nProviding utility to map a DOM element to source information, using debug metadata provided by (some) frameworks.\n\nAPI:\n\n````javascript\n    import { resolve } from 'element-to-source';\n    var domElement = document.getElementById('#main');\n\n    var sourceMetadata = resolve(domElement);\n    // {\n    //     charNumber: 0,\n    //     columnNumber: 0,\n    //     fileName: 'component.tsx',\n    //     lineNumber: 0\n    // }\n````\n\n## Supported frameworks\n\n- Svelte.js via https://github.com/sveltejs/svelte/issues/1499 (when in Dev Mode)\n- React / Create React App via https://medium.com/@sitambas/get-global-element-state-a408a744e99d \n\n## Unsupported\n\nI would love to get help finding ways to enable any of these.\n\n- Angular\n- Vue.js\n- React + Parcel bundler\n- Next.js?\n- Web Components\n- Ionic?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauchenberg%2Felement-to-source","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauchenberg%2Felement-to-source","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauchenberg%2Felement-to-source/lists"}