{"id":21916884,"url":"https://github.com/zenoo/lightquery","last_synced_at":"2025-04-19T03:19:57.129Z","repository":{"id":51866409,"uuid":"164403857","full_name":"Zenoo/LightQuery","owner":"Zenoo","description":"Lightweight jQuery alternative","archived":false,"fork":false,"pushed_at":"2024-02-17T09:09:11.000Z","size":744,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T06:43:14.929Z","etag":null,"topics":["alternative","jquery","lightweight"],"latest_commit_sha":null,"homepage":"https://zenoo.github.io/LightQuery/","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/Zenoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-01-07T08:50:34.000Z","updated_at":"2025-03-20T01:32:38.000Z","dependencies_parsed_at":"2024-02-17T10:23:12.440Z","dependency_job_id":"3e35bb72-ab24-470f-907d-350feefe6926","html_url":"https://github.com/Zenoo/LightQuery","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FLightQuery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FLightQuery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FLightQuery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FLightQuery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zenoo","download_url":"https://codeload.github.com/Zenoo/LightQuery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249598446,"owners_count":21297464,"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":["alternative","jquery","lightweight"],"created_at":"2024-11-28T19:21:26.319Z","updated_at":"2025-04-19T03:19:57.113Z","avatar_url":"https://github.com/Zenoo.png","language":"JavaScript","readme":"# LightQuery - 10 times smaller than jQuery (90kB =\u003e 9kB)\n\nThis is a complete rewrite of the well-known jQuery library.\n\nEvery method has been rewritten or replaced by another method.\n\n### Doc\n\nSee the [documentation](https://zenoo.github.io/LightQuery/) for more\n\n* **Installation**\n\nSimply import `light-query.min.js` into your HTML by downloading it or using a CDN.\n```\n\u003cscript src=\"https://gitcdn.link/repo/Zenoo/LightQuery/master/light-query.min.js\"\u003e\u003c/script\u003e\t\n```\n\n* **Usage**\n\n* Initialize your object like you would in jQuery using `$`:\n\n```js\n$(selector[, context])\n\n// Example\nlet elements = $('yo.ur[selec=\"tor\"]');\nlet elementsWithContext = $('yo.ur[selec=\"tor\"]', section);\n```\n\n* If you need to wait for the document to be loaded, use:\n\n```js\n$(() =\u003e {\n  // The document is loaded here\n});\n\n// OR\n\n$(function(){\n  // The document is loaded here\n});\n```\n\n* The `LightQuery` object extends the native `Array` object, so you can use all of its methods/properties.\n\n```js\n// Examples\n$('p').length;\n$('p')[0];\n$('p').map(...);\n```\n\n* **Methods**\n\nThe full API documentation is available on [https://zenoo.github.io/LightQuery/](https://zenoo.github.io/LightQuery/).\n\n  * **`.add()`**\n  * **`.addClass()`**\n  * **`.after()`**\n  * **`.append()`**\n  * **`.appendTo()`**\n  * **`.before()`**\n  * **`.blur()`**\n  * **`.children()`**\n  * **`.clone()`**\n  * **`.closest()`**\n  * **`.css()`**\n  * **`.detach()`**\n  * **`.each()`**\n  * **`.empty()`**\n  * **`.eq()`**\n  * **`.filter(callback)`** *The callback follows `function(item, index){ ... }`*\n  * **`.first()`**\n  * **`.get()`**\n  * **`.has()`**\n  * **`.hasClass()`**\n  * **`.height()`**\n  * **`.hide()`**\n  * **`.html()`**\n  * **`.index()`**\n  * **`.insertAfter()`**\n  * **`.insertBefore()`**\n  * **`.is()`**\n  * **`$.ajax()`** *Uses [AjaxSender](https://github.com/Zenoo/ajax-sender)*\n  * **`$.get()`** *$.ajax() shorthand for simple GET requests*\n  * **`$.insert()`**\n  * **`.last()`**\n  * **`.next()`**\n  * **`.nextAll()`**\n  * **`.not()`**\n  * **`.off()`**\n  * **`.offset()`**\n  * **`.parent()`**\n  * **`.parents()`**\n  * **`.prepend()`**\n  * **`.prependTo()`**\n  * **`.prev()`**\n  * **`.prevAll()`**\n  * **`.remove()`**\n  * **`.removeAttr()`**\n  * **`.removeClass()`**\n  * **`.replaceAll()`**\n  * **`.replaceWith()`**\n  * **`.scrollLeft()`**\n  * **`.scrollTop()`**\n  * **`.serialize()`**\n  * **`.serializeArray()`**\n  * **`.show()`**\n  * **`.siblings()`**\n  * **`.slice()`**\n  * **`.text()`**\n  * **`.toggle()`**\n  * **`.toggleClass()`**\n  * **`.trigger()`**\n  * **`.unwrap()`**\n  * **`.val()`**\n  * **`.width()`**\n  * **`.wrap()`**\n  * **`.wrapAll()`**\n\n\n* **Not included**\n\n  * **`.addBack()`** *Use more appropriate selectors instead*\n  * **`.ajaxComplete()`** *Use `$.ajax()` instead*\n  * **`.ajaxError()`** *Use `$.ajax()` instead*\n  * **`.ajaxSend()`** *Use `$.ajax()` instead*\n  * **`.ajaxStart()`** *Use `$.ajax()` instead*\n  * **`.ajaxStop()`** *Use `$.ajax()` instead*\n  * **`.ajaxSuccess()`** *Use `$.ajax()` instead*\n  * **`.andSelf()`** *Use more appropriate selectors instead*\n  * **`.animate()`** *Use CSS3 animations instead*\n  * **`.change()`** *Use `.on('change')` or `.trigger('change')` instead*\n  * **`.clearQueue()`** *There is no queue*\n  * **`.click()`** *Use `.on('click')` or `.trigger('click')` instead*\n  * **`.data()`** *Use `.attr('data-...')` instead*\n  * **`.dblclick()`** *Use `.on('dblclick')` or `.trigger('dblclick')` instead*\n  * **`.delay()`** *Use `setTimeout()` or CSS3 animations instead*\n  * **`.delegate()`** *Use `.on()` instead*\n  * **`.dequeue()`** *There is no queue*\n  * **`.die()`** *Use `.off()` instead*\n  * **`.end()`** *Use another query instead*\n  * **`.error()`** *Use `.on('error')` instead*\n  * **`.fadeIn()`** *Use classes and CSS transitions instead*\n  * **`.fadeOut()`** *Use classes and CSS transitions instead*\n  * **`.fadeTo()`** *Use classes and CSS transitions instead*\n  * **`.fadeToggle()`** *Use classes and CSS transitions instead*\n  * **`.finish()`** *Use CSS3 animations instead*\n  * **`.focus()`** *Use `.on('focus')` or `.trigger('focus')` instead*\n  * **`.focusin()`** *Use `.on('focusin')` instead*\n  * **`.focusout()`** *Use `.on('focusout')` instead*\n  * **`.hover()`** *Use `.on('mouseenter')` and `.on('mouseleave')` instead*\n  * **`.innerHeight()`** *Use `.height()` instead*\n  * **`.innerWidth()`** *Use `.width()` instead*\n  * **`$.each()`** *Use `for ... of` or `.forEach()` instead*\n  * **`$.extend()`** *Use `Object.assign()` instead*\n  * **`$.fn.extend()`** *Use `_$.prototype.XXX` instead*\n  * **`$.getJSON()`** *Use `$.ajax()` instead*\n  * **`$.getScript()`** *Use `$.ajax()` instead*\n  * **`$.globalEval()`** *Use proper coding instead*\n  * **`$.post()`** *Use `$.ajax()` instead*\n  * **`.queue()`** *There is no queue*\n  * **`.keydown()`** *Use `.on('keydown')` or `.trigger('keydown')` instead*\n  * **`.keypress()`** *Use `.on('keypress')` or `.trigger('keypress')` instead*\n  * **`.keyup()`** *Use `.on('keyup')` or `.trigger('keyup')` instead*\n  * **`.live()`** *Use `.on()` instead*\n  * **`.load()`** *Use `$.ajax()` and `.html()` instead*\n  * **`.mousedown()`** *Use `.on('mousedown')` or `.trigger('mousedown')` instead*\n  * **`.mouseenter()`** *Use `.on('mouseenter')` or `.trigger('mouseenter')` instead*\n  * **`.mouseleave()`** *Use `.on('mouseleave')` or `.trigger('mouseleave')` instead*\n  * **`.mousemove()`** *Use `.on('mousemove')` or `.trigger('mousemove')` instead*\n  * **`.mouseout()`** *Use `.on('mouseout')` or `.trigger('mouseout')` instead*\n  * **`.mouseover()`** *Use `.on('mouseover')` or `.trigger('mouseover')` instead*\n  * **`.mouseup()`** *Use `.on('mouseup')` or `.trigger('mouseup')` instead*\n  * **`.nextUntil()`** *Use better queries instead*\n  * **`.offsetParent()`** *Why would you ever need this*\n  * **`.one()`** *Use `.on()` and `.off()` instead*\n  * **`.outerHeight()`** *Use `.height()` and `.css()` instead*\n  * **`.outerWidth()`** *Use `.width()` and `.css()` instead*\n  * **`.parentsUntil()`** *Use `.parents()` and `.not()` instead*\n  * **`.prevUntil()`** *Use better queries instead*\n  * **`.promise()`** *There is no queue*\n  * **`.prop()`** *Use `.attr()` instead*\n  * **`.pushStack()`** *There is no stack*\n  * **`.queue()`** *There is no queue*\n  * **`.ready()`** *Use `$(function(){ ... })` or `$(() =\u003e { ... })` instead*\n  * **`.removeData()`** *Use `.removeAttr()` instead*\n  * **`.removeProp()`** *Use `.removeAttr()` instead*\n  * **`.resize()`** *Use `.on('resize')` or `.trigger('resize')` instead*\n  * **`.scroll()`** *Use `.on('scroll')` or `.trigger('scroll')` instead*\n  * **`.select()`** *Use `.on('select')` or `.trigger('select')` instead*\n  * **`.size()`** *Use `.length` instead*\n  * **`.slideDown()`** *Use classes and CSS transitions instead*\n  * **`.slideToggle()`** *Use classes and CSS transitions instead*\n  * **`.slideUp()`** *Use classes and CSS transitions instead*\n  * **`.stop()`** *Use CSS3 animations instead*\n  * **`.submit()`** *Use `.on('submit')` or `.trigger('submit')` instead*\n  * **`.toArray()`** *Use `.get()` instead*\n  * **`.triggerHandler()`** *Use `.trigger()` instead*\n  * **`.unbind()`** *Use `.off()` instead*\n  * **`.undelegate()`** *Use `.off()` instead*\n  * **`.unload()`** *Use `.on('unload')` instead*\n  * **`.wrapInner()`** *Use `.children().wrapAll()` instead*\n\n## Authors\n\n* **Zenoo** - *Initial work* - [Zenoo.fr](https://zenoo.fr)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoo%2Flightquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenoo%2Flightquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoo%2Flightquery/lists"}