{"id":17043776,"url":"https://github.com/kaleidawave/duplicatejs","last_synced_at":"2026-04-27T12:35:40.488Z","repository":{"id":113213128,"uuid":"173981791","full_name":"kaleidawave/duplicatejs","owner":"kaleidawave","description":"A Javascript plugin for duplicating HTML elements","archived":false,"fork":false,"pushed_at":"2019-03-08T10:49:01.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T02:27:47.033Z","etag":null,"topics":["duplicate","html","javascript","javascript-plugin"],"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/kaleidawave.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-05T16:28:12.000Z","updated_at":"2019-08-04T16:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb2b2ff8-62d3-4052-b3bb-06368f35d3c2","html_url":"https://github.com/kaleidawave/duplicatejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaleidawave/duplicatejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fduplicatejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fduplicatejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fduplicatejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fduplicatejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaleidawave","download_url":"https://codeload.github.com/kaleidawave/duplicatejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fduplicatejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["duplicate","html","javascript","javascript-plugin"],"created_at":"2024-10-14T09:30:45.409Z","updated_at":"2026-04-27T12:35:40.469Z","avatar_url":"https://github.com/kaleidawave.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duplicate.js\n\nDuplicate is a simple Javascript script for duplicating HTML elements. Given a node with children, Duplicate will clone the **first** child node by a number specified.\n\n### How to use:\n\nSimply import it into your HTML (Make sure it is deferred to make it run once the DOM is loaded)\n```html\n\u003cscript defer src=\"https://cdn.jsdelivr.net/gh/kaleidawave/duplicatejs/duplicate.min.js\"\u003e\u003c/script\u003e\n```\n\nThen given a node with a child\n```html\n\u003cdiv data-duplicate=\"5\"\u003e\n    \u003cp\u003e Hello \u003c/p\u003e\n\u003c/div\u003e\n```\n\nWill be transformed into:\n```html\n\u003cdiv data-duplicate=\"5\"\u003e\n    \u003cp\u003e Hello \u003c/p\u003e\n    \u003cp\u003e Hello \u003c/p\u003e\n    \u003cp\u003e Hello \u003c/p\u003e\n    \u003cp\u003e Hello \u003c/p\u003e\n    \u003cp\u003e Hello \u003c/p\u003e\n\u003c/div\u003e\n```\n\n(data-duplicate refers to the **final** number of elements)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaleidawave%2Fduplicatejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaleidawave%2Fduplicatejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaleidawave%2Fduplicatejs/lists"}