{"id":16760283,"url":"https://github.com/ryanve/annex","last_synced_at":"2025-10-18T09:53:14.612Z","repository":{"id":10824922,"uuid":"13101642","full_name":"ryanve/annex","owner":"ryanve","description":"DOM insertion module","archived":false,"fork":false,"pushed_at":"2016-09-05T08:21:13.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T18:52:26.141Z","etag":null,"topics":["dom","dom-manipulation","javascript","javascript-library"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/annex","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/ryanve.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":"2013-09-25T18:19:37.000Z","updated_at":"2023-08-08T21:07:35.000Z","dependencies_parsed_at":"2022-08-29T11:20:39.981Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/annex","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ryanve/annex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fannex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fannex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fannex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fannex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/annex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fannex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270892209,"owners_count":24663543,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["dom","dom-manipulation","javascript","javascript-library"],"created_at":"2024-10-13T04:22:58.840Z","updated_at":"2025-10-18T09:53:14.546Z","avatar_url":"https://github.com/ryanve.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# annex\n\u003cb\u003eDOM insertion module\u003c/b\u003e\n\n```sh\nnpm install annex --save\n```\n\n## API\n### `annex()` \u0026rArr; instance\n#### `annex(markup|node|stack)`\n\n```js\nannex('\u003ca href=\"/\"\u003ehome\u003c/a\u003e').appendTo(document.body) // annex(markup) example\nannex(document.body).append('\u003ca href=\"/\"\u003ehome\u003c/a\u003e') // annex(node) example\nannex(document.querySelectorAll('.example')).remove() // annex(stack) example\n```\n\n### Chain\n#### jQuery-compatible [syntax](http://api.jquery.com/category/manipulation/dom-insertion-inside/)\n- `.html(string?)` Get or set.\n- `.text(string?)` Get or set.\n- `.tag()` Get markup string.\n- `.tags()` Get markup array.\n- `.after(content...)` Insert content.\n- `.before(content...)` Insert content.\n- `.append(content...)` Insert content.\n- `.prepend(content...)` Insert content.\n- `.appendTo(target)` Insert into target.\n- `.prependTo(target)` Insert into target.\n- `.detach()` Detach nodes from DOM for later use.\n- `.remove()` Detach nodes from DOM and purge.\n- `.empty()` Empty nodes.\n- `.clone()` Clone nodes.\n\n### Static\n#### Fast simple static methods\n- `annex.text(node)` Get.\n- `annex.html(node)` Get.\n- `annex.contents(node)` Get nodes.\n- `annex.tag(node)` Get markup string.\n- `annex.tags(nodes)` Get markup array.\n- `annex.detach(node)` Detach from DOM.\n- `annex.empty(node)` Empty node.\n- `annex.owner(node)` Get owner document.\n\n## Fund\n\n[Fund opensource dev](https://www.gittip.com/ryanve/) \u003cb\u003e=)\u003c/b\u003e\n\n## License\n\n[MIT](package.json)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fannex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Fannex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fannex/lists"}