{"id":26566284,"url":"https://github.com/code-soup/dom-js","last_synced_at":"2025-10-29T13:19:56.771Z","repository":{"id":42505061,"uuid":"477027627","full_name":"code-soup/dom-js","owner":"code-soup","description":"Frequent DOM Js functions","archived":false,"fork":false,"pushed_at":"2022-04-02T11:58:25.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T10:45:00.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/code-soup.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":"2022-04-02T10:56:22.000Z","updated_at":"2022-04-02T11:14:19.000Z","dependencies_parsed_at":"2022-09-16T00:00:48.476Z","dependency_job_id":null,"html_url":"https://github.com/code-soup/dom-js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fdom-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fdom-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fdom-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fdom-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-soup","download_url":"https://codeload.github.com/code-soup/dom-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244999961,"owners_count":20544971,"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":"2025-03-22T18:20:06.816Z","updated_at":"2025-10-29T13:19:51.732Z","avatar_url":"https://github.com/code-soup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DOM Js\nCollection of small frequently used Js functions for DOM elements manipulation across projects. Nothing fancy, just simple stuff. Simply for writing less code.\n\n## Issues\nPlease use [Github issues](https://github.com/code-soup/dom-js/issues) to submit any bugs you may find.\n\n\n## Documentation\n\n    @import dom from '@bobz/dom-js';\n   \nWrapper of document.querySelector();\n\n    dom.get('.selector'); \n    dom.getAll('.selector'); // instead of document.querySelectorAll();\n    \nUn/Set class on node\n\n    dom.addClass(node, className); \n    dom.removeClass(node, className);\n    \nUn/Set class on node via selector\n\n    dom.setClass(selector, className);\n    dom.unsetClass(selector, className);\n \nGet Bounding rect\n\n    dom.getRect(selector)\n    \nGet dataset attribute\n\n    dom.getData(node, attr);\n\n\n#### License\nThis project is licensed under the [GPL license](http://www.gnu.org/licenses/gpl-3.0.txt).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-soup%2Fdom-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-soup%2Fdom-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-soup%2Fdom-js/lists"}