{"id":18256127,"url":"https://github.com/serapath/replace-dom","last_synced_at":"2025-04-08T22:26:58.232Z","repository":{"id":57353681,"uuid":"74310858","full_name":"serapath/replace-dom","owner":"serapath","description":"replace a node in the DOM with a given node ","archived":false,"fork":false,"pushed_at":"2016-11-21T00:14:13.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T05:47:03.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/replace-dom","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/serapath.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}},"created_at":"2016-11-21T00:02:52.000Z","updated_at":"2016-11-21T00:15:10.000Z","dependencies_parsed_at":"2022-09-19T01:52:12.279Z","dependency_job_id":null,"html_url":"https://github.com/serapath/replace-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/serapath%2Freplace-dom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Freplace-dom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Freplace-dom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Freplace-dom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/replace-dom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937219,"owners_count":21021216,"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-11-05T10:20:06.996Z","updated_at":"2025-04-08T22:26:58.202Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replace-dom\nreplace a node in the DOM with a given node\n\n# usage\n`npm install replace-dom`\n\n```js\n// prepare example\nvar foo = document.createElement('h1')\nfoo.innerHTML = 'hello foo'\nvar bar = document.createElement('h1')\nbar.innerHTML = 'hello bar'\nvar element = foo\ndocument.body.appendChild(element)\n\n// use\nvar replace = require('replace-dom')\nconsole.log(element === foo)\nelement = replace(element, bar)\nconsole.log(element === bar)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Freplace-dom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Freplace-dom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Freplace-dom/lists"}