{"id":31908296,"url":"https://github.com/enzyme/qoob","last_synced_at":"2025-10-13T15:26:53.092Z","repository":{"id":57147127,"uuid":"65609119","full_name":"enzyme/qoob","owner":"enzyme","description":"A lightweight DOM manipulation library","archived":false,"fork":false,"pushed_at":"2017-07-19T03:13:10.000Z","size":128,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T16:38:59.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://enzyme.github.io/qoob/","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/enzyme.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-08-13T09:05:03.000Z","updated_at":"2024-07-30T22:13:45.000Z","dependencies_parsed_at":"2022-09-06T12:52:28.810Z","dependency_job_id":null,"html_url":"https://github.com/enzyme/qoob","commit_stats":null,"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"purl":"pkg:github/enzyme/qoob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzyme%2Fqoob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzyme%2Fqoob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzyme%2Fqoob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzyme%2Fqoob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enzyme","download_url":"https://codeload.github.com/enzyme/qoob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzyme%2Fqoob/sbom","scorecard":{"id":378571,"data":{"date":"2025-08-11","repo":{"name":"github.com/enzyme/qoob","commit":"8664d9961526596f4876c5f62df0bdae0ee80011"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T14:50:30.820Z","repository_id":57147127,"created_at":"2025-08-18T14:50:30.820Z","updated_at":"2025-08-18T14:50:30.820Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015919,"owners_count":26085778,"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-10-13T02:00:06.723Z","response_time":61,"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":"2025-10-13T15:26:48.285Z","updated_at":"2025-10-13T15:26:53.082Z","avatar_url":"https://github.com/enzyme.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/2805249/18409938/3bc3fa0e-7798-11e6-81e4-c7e8e69bf90c.jpg\" alt=\"Qoob logo\"\u003e\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eQoob (/kjuːb/)\u003c/h1\u003e\n\u003cp align=\"center\"\u003eA lightweight DOM manipulation library.\u003c/p\u003e\n\n## Examples\n\n### CSS manipulation\n```javascript\nimport Q from 'qoob'\n\nQ.css('p', {\n    color: 'red',\n    fontWeight: 'bold',\n})\n```\n\n### Events\n```javascript\nimport Q from 'qoob'\n\nQ.on('.Button', 'click', (e) =\u003e {\n    alert('Button was clicked!')\n})\n```\n\n### Iteration + HTML manipulation\n```javascript\nimport Q from 'qoob'\n\nQ.each('p', (el, i) =\u003e {\n    Q.html(el, `I am at index ${i}`)\n})\n```\n\n### Element creation\n```javascript\nimport Q from 'qoob'\n\nlet p_tag = Q.make('p', 'Hello world!')\n\nQ.append('body', p_tag)\n```\n\nand much more...\n\n## Install\n\n### NPM\n```bash\n$ npm install --save qoob\n```\n\n### Bower\n```bash\n$ bower install qoob\n```\n\n### CDN\n#### Development\n```\nhttps://cdn.rawgit.com/enzyme/qoob/master/dist/qoob.js\n```\n#### Production\n```\nhttps://cdn.rawgit.com/enzyme/qoob/master/dist/qoob.min.js\n```\n\n## Function reference\n\n| Name | Parameters | Description |\n| --- | --- | --- |\n| **addClass** | `selector, class_name` | Add the given class to the element(s) matching the selector. |\n| **ancestor** | `selector, ancestor_selector` | Get an array of ancestors matching the ancestor_selector for the element(s) matching the selector. |\n| **append** | `selector, child_element` | Append the child element given to the element(s) matching the selector. |\n| **attr** | `selector, attribute, value = null` | Get or set the given attribute for the element(s) matching the selector. |\n| **children** | `selector, child_selector = null` | Get an array of children for the element(s) matching the selector. |\n| **clone** | `selector` | Clone the given element(s) matching the selector and return them as an array. |\n| **css** | `selector, properties = {}` | Set the given css description object on the element(s) matching the selector, or get the value of the css property if `properties` is a string value. E.g. \"padding\". |\n| **data** | `selector, name, content = null` | Gets or sets the data attributes on the element(s) matching the selector. |\n| **documentReady** | `closure` | Executes the given callback function with the document is ready. |\n| **each** | `selector, closure` | Execute the given callback function for each element in the list provided. |\n| **find** | `selector` | Find and return any element(s) matching the given selector. If the selector is an array or NodeList, simply return it as is. If the selector is a single object, return it as an array with 1 element. |\n| **findAll** | `selectors` | Find and return any element(s) matching the given selectors. |\n| **first** | `selector` | Get the first element matching the given selector.|\n| **firstOf** | `fn` | Returns a function that calls the given function and returns only the first result returned by that function. Eg `let firstHtml = Qoob.firstOf(Qoob.html)` when called like `firstHtml('p')` with multiple `p` tags on the page, will only return the HTML contents of the first `p` tag. |\n| **func** | `name` | Returns a function that takes an object as an argument and returns the value returned by calling the provided function on it. |\n| **hasClass** | `selector, class_name` | Checks whether the given class exists on the element(s) matching the selector. This will still return true if multiple elements are matched and any one of them has the class applied. |\n| **head** | `list` | Alias for `strip(...)`. |\n| **hide** | `selector` | Hide the element(s) matching the selector. |\n| **html** | `selector, content = null` | Gets or sets the html content on the element(s) matching the selector. |\n| **is** | `selector, class_name` | Whether the element(s) matching the selector have the given class applied. |\n| **make** | `type, inner_html = null` | Create a new html element of the specified type and optionally fill it with the given html. |\n| **on** | `selector, event, closure` | Fire a callback on any element(s) matching the selector when the specified event type occurs. |\n| **off** | `selector, event, closure` | Disable an event for a closure on any element(s) matching the selector when called. |\n| **parent** | `selector` | Get an array of parents for the element(s) matching the selector. |\n| **prepend** | `selector, child_element` | Prepend the child element given to the element(s) matching the selector. |\n| **prop** | `name` | Returns a function that takes an object as an argument and returns the given property value on it. |\n| **remove** | `selector` | Remove the element(s) from the DOM. |\n| **removeAttr** | `selector, attribute` | Remove the attribute from the element(s) matching the selector. |\n| **removeClass** | `selector, class_name` | Remove the given class from the element(s) matching the selector. |\n| **show** | `selector, preferred_display = 'block'` | Show the element(s) matching the selector. |\n| **siblings** | `selector` | Get an array of siblings for the element(s) matching the selector. |\n| **state** | `selector, attribute` | Alias for the setter functionality of `attr(...)` where the attribute will be set to a value equal to its name. Eg `state('input', 'disabled')` is equivalent to calling `attr('input', 'disabled', 'disabled')`. |\n| **strip** | `list` | Returns the first value in the array provided, otherwise returns null if the array is empty. |\n| **text** | `selector, value = null` | Get or set the text for the element(s) matching the selector. |\n| **toggle** | `selector, preferred_display = 'block'` | Toggle the visibility of the element(s) matching the selector. |\n| **toggler** | `selector, fn_on, fn_off` | When called on `selector`, it will either call `fn_on` or `fn_off` if the state of the element(s) are transitioning to their `on` or `off` states respectively. Element(s) start in an `off` state. |\n| **val** | `selector, value = null` | Get or set the value for the element(s) matching the selector. |\n\n## License\n\nMIT, see LICENSE.\n\n`Copyright (c) 2016 Tristan Strathearn \u003cr3oath@gmail.com\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzyme%2Fqoob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzyme%2Fqoob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzyme%2Fqoob/lists"}