{"id":17290641,"url":"https://github.com/nzbin/domq","last_synced_at":"2025-04-06T06:14:06.115Z","repository":{"id":40940143,"uuid":"132210159","full_name":"nzbin/domq","owner":"nzbin","description":"🛠️ A modular DOM manipulation library.","archived":false,"fork":false,"pushed_at":"2024-09-03T19:45:03.000Z","size":1072,"stargazers_count":88,"open_issues_count":2,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T05:05:32.064Z","etag":null,"topics":["animation","dom-library","jquery","modular","module-system","query-engine","zepto"],"latest_commit_sha":null,"homepage":"https://nzbin.gitbook.io/domq/","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/nzbin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-05T03:11:19.000Z","updated_at":"2025-01-09T03:26:26.000Z","dependencies_parsed_at":"2023-02-09T02:00:38.601Z","dependency_job_id":"1e05c822-88b8-4b17-a90e-92b7d71c7b17","html_url":"https://github.com/nzbin/domq","commit_stats":{"total_commits":128,"total_committers":4,"mean_commits":32.0,"dds":0.1015625,"last_synced_commit":"917de867b3e3103f15159b1e216e484ea158a140"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fdomq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fdomq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fdomq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fdomq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nzbin","download_url":"https://codeload.github.com/nzbin/domq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441063,"owners_count":20939239,"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":["animation","dom-library","jquery","modular","module-system","query-engine","zepto"],"created_at":"2024-10-15T10:38:44.102Z","updated_at":"2025-04-06T06:14:06.068Z","avatar_url":"https://github.com/nzbin.png","language":"JavaScript","readme":"# Domq\n\n[![Travis](https://img.shields.io/travis/nzbin/domq.svg)](https://travis-ci.org/nzbin/domq)\n[![npm](https://img.shields.io/npm/v/domq.js.svg)](https://www.npmjs.com/package/domq.js)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/nzbin/domq/blob/master/LICENSE)\n\nDomq is a modular DOM manipulation library. It's built according to Zepto.js.\n\n## Who uses it?\n\n- [photoviewer](https://github.com/nzbin/photoviewer)\n- [unsliderjs](https://github.com/nzbin/unsliderjs)\n\n## Installation\n\n```sh\n$ npm install domq.js --save\n```\n\nThere have four files in `dist` after build.\n\n```plain\ndist\n├── domq.js (UMD)\n├── domq.common.js (CJS)\n├── domq.esm.js (ESM)\n└── domq.modular.js (MODULAR)\n```\n\nIt's used `domq.modular.js` by default.\n\n```js\nimport { D } from 'domq.js';\n```\n\nOr you can also import the other file as needed.\n\n```js\nimport { D } from 'domq.js/dist/domq.esm.js';\n```\n\n## Modular Usage\n\nYou should put the methods as needed on `D` function manually.\n\n```js\nimport { D, isArray, addClass } from 'domq.js/src/domq.modular';\n\n// Static methods\nconst methods = {\n  isArray,\n};\n\n// Instance methods\nconst fnMethods = {\n  addClass,\n};\n\nD.extend(methods);\nD.fn.extend(fnMethods);\n```\n\n## API\n\n### Instance methods\n\n- `D().css()`\n- `D().attr()`\n- `D().removeAttr()`\n- `D().prop()`\n- `D().removeProp()`\n- `D().hasClass()`\n- `D().addClass()`\n- `D().removeClass()`\n- `D().toggleClass()`\n- `D().offset()`\n- `D().offsetParent()`\n- `D().position()`\n- `D().scrollTop()`\n- `D().scrollLeft()`\n- `D().width()`\n- `D().height()`\n- `D().remove()`\n- `D().empty()`\n- `D().clone()`\n- `D().html()`\n- `D().text()`\n- `D().append()`\n- `D().prepend()`\n- `D().after()`\n- `D().before()`\n- `D().replaceWith()`\n- `D().appendTo()`\n- `D().prependTo()`\n- `D().insertAfter()`\n- `D().insertBefore()`\n- `D().replaceAll()`\n- `D().find()`\n- `D().filter()`\n- `D().has()`\n- `D().not()`\n- `D().is()`\n- `D().add()`\n- `D().contents()`\n- `D().closest()`\n- `D().parents()`\n- `D().parent()`\n- `D().children()`\n- `D().siblings()`\n- `D().prev()`\n- `D().next()`\n- `D().index()`\n- `D().wrap()`\n- `D().wrapAll()`\n- `D().wrapInner()`\n- `D().unwrap()`\n- `D().val()`\n- `D().one()`\n- `D().on()`\n- `D().off()`\n- `D().trigger()`\n- `D().triggerHandler()`\n- `D().animate()`\n- `D().anim()`\n- `D().show()`\n- `D().hide()`\n- `D().toggle()`\n- `D().fadeTo()`\n- `D().fadeIn()`\n- `D().fadeOut()`\n- `D().fadeToggle()`\n\n### Static methods\n\n- `D.type()`\n- `D.contains()`\n- `D.camelCase()`\n- `D.isFunction()`\n- `D.isWindow()`\n- `D.isEmptyObject()`\n- `D.isPlainObject()`\n- `D.isNumeric()`\n- `D.isArray()`\n- `D.inArray()`\n- `D.trim()`\n- `D.grep()`\n- `D.noop()`\n- `D.Event()`\n- `D.proxy()`\n\n## License\n\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzbin%2Fdomq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnzbin%2Fdomq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzbin%2Fdomq/lists"}