{"id":15676760,"url":"https://github.com/shadowtime2000/easy-dom","last_synced_at":"2025-03-30T06:29:43.125Z","repository":{"id":143808156,"uuid":"300985976","full_name":"shadowtime2000/easy-dom","owner":"shadowtime2000","description":"Small yet powerful package to make manipulating the DOM 5 characters smaller","archived":false,"fork":false,"pushed_at":"2020-10-07T22:36:42.000Z","size":78,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T08:50:33.561Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shadowtime2000.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":"2020-10-03T21:41:46.000Z","updated_at":"2020-11-30T04:14:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc3becc4-7191-48b8-94fc-38597cedcd98","html_url":"https://github.com/shadowtime2000/easy-dom","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/shadowtime2000%2Feasy-dom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Feasy-dom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Feasy-dom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Feasy-dom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadowtime2000","download_url":"https://codeload.github.com/shadowtime2000/easy-dom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285650,"owners_count":20752947,"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-10-03T16:05:18.841Z","updated_at":"2025-03-30T06:29:43.100Z","avatar_url":"https://github.com/shadowtime2000.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eeasy-dom\u003c/h1\u003e\n\u003cp align=\"center\"\u003eSmall yet powerful package to make manipulating the DOM 5 characters smaller\u003c/p\u003e\n\n## Installation\n\nPut this in your `\u003cbody\u003e` tag:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/shadowtime2000/easy-dom/src/index.js\"\u003e\u003c/script\u003e\n```\n\nYou have now imported `easy-dom` into your website! And don't worry about file size! `easy-dom` is around 20 bytes, and the script tag is around 89 bytes, totalling 109 bytes added to your website!\n\n### Usage\n\nJust replace every reference to `document` with `DOM`.\n\n#### Advantages\n\nIf you replace a reference to `document` with `DOM`, you save around 5 bytes. That means, if you have 22 `document` references, instead of adding 109 bytes to your website, you are decreasing the size by 1 byte. So if you have more than 22, you decrease the size by even more!\nBut let me give you some bigger numbers:  \nIf\n - `jquery` started using this they would reduce their bundle size by over 1kb!\n - `react` started using this they would reduce their bundle size by 1.3kb!\n - `angular` started using this they would reduce their bundle size by 2.3kb!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowtime2000%2Feasy-dom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowtime2000%2Feasy-dom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowtime2000%2Feasy-dom/lists"}