{"id":19142528,"url":"https://github.com/eldoy/brsrkr","last_synced_at":"2026-06-04T16:31:07.632Z","repository":{"id":139867447,"uuid":"216978187","full_name":"eldoy/brsrkr","owner":"eldoy","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-23T11:14:02.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T19:25:06.038Z","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/eldoy.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-10-23T05:50:13.000Z","updated_at":"2022-06-04T21:53:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff259768-a525-45d0-9c86-51be065908d3","html_url":"https://github.com/eldoy/brsrkr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eldoy/brsrkr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fbrsrkr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fbrsrkr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fbrsrkr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fbrsrkr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/brsrkr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fbrsrkr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33914543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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":[],"created_at":"2024-11-09T07:27:33.874Z","updated_at":"2026-06-04T16:31:07.600Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BRSRKR\nTiny Javascript HTML and DOM manipulation library, encapsulation style.\n\n### Install\n`npm i brsrkr`\n\n### Usage\n```javascript\n// Get HTML\n$('#app').html()\n\n// Insert HTML\n$('#app').html('\u003cdiv\u003eBefore\u003c/div\u003e')\n\n// Insert HTML before element\n$('#app').html('\u003cdiv\u003ehello\u003c/div\u003e', 'before')\n\n// Insert HTML after element\n$('#app').html('\u003cdiv\u003ehello\u003c/div\u003e', 'after')\n\n// Insert HTML at top of element\n$('#app').html('\u003cdiv\u003ehello\u003c/div\u003e', 'top')\n\n// Insert HTML at end of element\n$('#app').html('\u003cdiv\u003ehello\u003c/div\u003e', 'end')\n\n// Get text\n$('#app').text()\n\n// Insert text\n$('#app').text('hello')\n\n// Query DOM, uses callback\n$('#app', el =\u003e el.textContent = 'hello')\n\n// Function body applies to all matches\n$('li', el =\u003e {\n  el.style.color = 'yellow'\n  el.textContent = 'hello'\n\n  // Can use brsrkr here too\n  $(el).html('\u003cspan\u003eNice!\u003c/span\u003e')\n\n  // Query only inside el\n  $('span', el, span =\u003e {\n    span.style.display = 'none'\n  })\n})\n\n// Find all span inside '#el'\n$('span', '#el', span =\u003e {\n  span.style.opacity = 1\n})\n\n// Get by index\n$('li').get(0)\n\n// Get number of matches\n$('li').length\n\n```\nISC licensed. Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fbrsrkr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Fbrsrkr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fbrsrkr/lists"}