{"id":16832655,"url":"https://github.com/zswang/element-path","last_synced_at":"2026-01-31T08:31:17.364Z","repository":{"id":57222132,"uuid":"131122714","full_name":"zswang/element-path","owner":"zswang","description":"Path of element get and query.","archived":false,"fork":false,"pushed_at":"2018-05-13T02:03:53.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T07:14:22.605Z","etag":null,"topics":["element","path"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zswang.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}},"created_at":"2018-04-26T08:14:47.000Z","updated_at":"2018-05-17T10:36:07.000Z","dependencies_parsed_at":"2022-09-04T04:50:37.883Z","dependency_job_id":null,"html_url":"https://github.com/zswang/element-path","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/zswang%2Felement-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Felement-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Felement-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Felement-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/element-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"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":["element","path"],"created_at":"2024-10-13T11:49:57.303Z","updated_at":"2026-01-31T08:31:17.357Z","avatar_url":"https://github.com/zswang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Element-Path\n\n# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]\n\nPath of element get and query.\n\n## Examples\n\n```js\nvar ep = new ElementPath()\nvar element = document.querySelect('a:nth-child(2)')\nvar path = ep.get(element)\nconsole.log(element === ep.query(path))\n// true\n```\n\n```js\nvar ep = new ElementPath({\n  tags: 'textarea,section,div'\n})\nvar element = document.querySelect('a:nth-child(2)')\nvar path = ep.get(element)\nconsole.log(element === ep.query(path))\n// true\n```\n\n## License\n\nMIT © [zswang](http://weibo.com/zswang)\n\n[npm-url]: https://npmjs.org/package/element-path\n[npm-image]: https://badge.fury.io/js/element-path.svg\n[travis-url]: https://travis-ci.org/zswang/element-path\n[travis-image]: https://travis-ci.org/zswang/element-path.svg?branch=master\n[coverage-url]: https://coveralls.io/github/zswang/element-path?branch=master\n[coverage-image]: https://coveralls.io/repos/zswang/element-path/badge.svg?branch=master\u0026service=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Felement-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Felement-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Felement-path/lists"}