{"id":24633117,"url":"https://github.com/kidgodzilla/tiny-query","last_synced_at":"2025-03-20T06:46:02.588Z","repository":{"id":65516587,"uuid":"100820397","full_name":"kidGodzilla/tiny-query","owner":"kidGodzilla","description":"TinyQuery is a modern selector library that doesn't do much. 2kb compressed.","archived":false,"fork":false,"pushed_at":"2017-08-22T00:37:33.000Z","size":614,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T05:33:48.372Z","etag":null,"topics":["dom-manipulation","jquery","selector-engine"],"latest_commit_sha":null,"homepage":"https://kidgodzilla.github.io/tiny-query/","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/kidGodzilla.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":"2017-08-19T20:45:04.000Z","updated_at":"2017-08-21T08:05:33.000Z","dependencies_parsed_at":"2023-01-26T22:25:11.754Z","dependency_job_id":null,"html_url":"https://github.com/kidGodzilla/tiny-query","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/kidGodzilla%2Ftiny-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidGodzilla%2Ftiny-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidGodzilla%2Ftiny-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidGodzilla%2Ftiny-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kidGodzilla","download_url":"https://codeload.github.com/kidGodzilla/tiny-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566927,"owners_count":20473451,"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":["dom-manipulation","jquery","selector-engine"],"created_at":"2025-01-25T08:13:53.710Z","updated_at":"2025-03-20T06:46:02.556Z","avatar_url":"https://github.com/kidGodzilla.png","language":"JavaScript","readme":"![TinyQuery](https://kidgodzilla.github.io/tiny-query/tiny-query.png)\n\n## Most of the syntactic sugar of jQuery. **2kb compressed.**\n\n[![npm version](https://badge.fury.io/js/tiny-query.svg)](https://www.npmjs.com/package/tiny-query)\n[![License](https://img.shields.io/badge/license-MIT%20License-blue.svg)](https://opensource.org/licenses/MIT)\n![Contains](https://img.shields.io/badge/contains-badges-orange.svg)\n\n### Installation via NPM\n\n```\nnpm install tiny-query\n```\n\n### Usage via CDN\n\nInclude one of the following scripts in your project:\n\n```\nhttps://unpkg.com/tiny-query@latest/tiny-query.min.js\n```\n\nor alternatively:\n\n```\nhttps://cdn.jsdelivr.net/npm/tiny-query@latest/tiny-query.min.js\n```\n\n### What it does\n\nYou can use it as a jQuery replacement, particularly if you only need to target modern browsers.\n\nTinyQuery includes most of the useful parts of jQuery, including:\n\n- Sizzle replacement (selector engine)\n- Element utilities\n- Effects\n- Events\n\n### Why\n\njQuery is great. It makes the DOM easy to manipulate, despite an unforgiving native API.\n\nBut, you ever wonder what it would look like if you started over, and just used modern Javascript?\n\nWell, it's something like 400 lines of code. And you're looking at it.\n\n### Examples\n\n```\n$('body').hide()\n```\n\n```\n$('body').find('p').addClass('foo');\n```\n\n```\n$('p').eq(4).fadeOut();\n```\n\n```\n$('#form').on('submit', (e) =\u003e {\n  e.preventDefault();\n  console.log('Submitted!');\n});\n```\n\n\n### What's missing\n\nBy default, `$.ajax` is not supported. However, if you first include the `reqwest` library, it will be included as `$.ajax`.\n\n```\nhttps://cdnjs.cloudflare.com/ajax/libs/reqwest/2.0.5/reqwest.min.js\n```\n\n-----\n\nAlso, jQuery tends to alias a ton of things for convenience. I'm open to it (via Pull Request), I just haven't implemented a lot of that. (`$(s).on('click')` vs. `$(s).click()`, etc.)\n\n-----\n\nhttps://docs.google.com/document/d/1LPaPA30bLUB_publLIMF0RlhdnPx_ePXm7oW02iiT6o/edit is a good write-up of browser-specific workarounds you get for free when using jQuery.\n\n-----\n\nAlso, some more complex behavior may be missing, even when a method is partially supported.\n\nThis is a WIP. Feel free to open issues (or Pull Requests!) if you find anything that annoys you.\n\n-----\n\n## Thanks!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidgodzilla%2Ftiny-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkidgodzilla%2Ftiny-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidgodzilla%2Ftiny-query/lists"}