{"id":21951345,"url":"https://github.com/hiswe/minidom","last_synced_at":"2025-03-22T17:44:12.525Z","repository":{"id":137623733,"uuid":"53046157","full_name":"Hiswe/minidom","owner":"Hiswe","description":"chainable arrays DOM API wrapper","archived":false,"fork":false,"pushed_at":"2016-03-03T12:09:06.000Z","size":6,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T22:32:55.326Z","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/Hiswe.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":"2016-03-03T11:44:10.000Z","updated_at":"2016-03-03T11:44:16.000Z","dependencies_parsed_at":"2024-03-26T06:35:44.073Z","dependency_job_id":null,"html_url":"https://github.com/Hiswe/minidom","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/Hiswe%2Fminidom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hiswe%2Fminidom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hiswe%2Fminidom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hiswe%2Fminidom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hiswe","download_url":"https://codeload.github.com/Hiswe/minidom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244999193,"owners_count":20544863,"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":[],"created_at":"2024-11-29T06:13:38.468Z","updated_at":"2025-03-22T17:44:12.507Z","avatar_url":"https://github.com/Hiswe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minidom\n\nSmall wrapper around the DOM API written in ES2015.  \nThe purpose is to have a chainable API that use extended real arrays (like in [dominus](https://github.com/bevacqua/dominus))\n\n## why\n\nIt's a simple personnal project for my own use (mainly).  \nIt's why it won't be published on NPM.\n\nthere are a lot of good alternatives :)\n\n- [jQuery](https://www.npmjs.com/package/jquery)\n- [Dominus](https://github.com/bevacqua/dominus)\n\nbe aware that it only use basic DOM api:\n\n- [youmightnotneedjquery](http://youmightnotneedjquery.com/)\n- [what jquery does for you](https://docs.google.com/document/d/1LPaPA30bLUB_publLIMF0RlhdnPx_ePXm7oW02iiT6o/edit)\n\n## support\n\n- should be IE10+\n- doesn't have a selector engine (use document.querySelectorAll)\n\n## not DOM functions\n\n- **XHR**: use [fetch API](https://fetch.spec.whatwg.org/) (use [fetch polyfill](https://www.npmjs.com/package/whatwg-fetch), need Promise support)\n- **Promise**: use [es6-promise](https://www.npmjs.com/package/es6-promise)\n- **Serialize a form**: use [form-serialize](https://www.npmjs.com/package/form-serialize)\n\n## animations\n\nuse css animation with transitionEnd. (determining which transitionend event could be done with [transitionend-property](https://www.npmjs.com/package/transitionend-property)\n\n# Install\n\n```\nnpm install hiswe/minidom -D\n```\n\n## compile\n\nthis libs means to be used with browserify + babelify + preset2015\n\n```\nnpm install browserify babelify babel-preset-es2015 -D\n```\n\n```js\nvar browserify    = require('browserify');\nvar babelify      = require('babelify');\n\nb = browserify({\n  cache:        {},\n  packageCache: {},\n  debug:        true,\n  entries:      ['./front-app/index.js']\n});\n\nb.transform(babelify, {presets: ['es2015']})\n// …end of the build\n\n```\n\n## use\n\nin your front application\n\n```js\nimport minidom from 'minidom';\n\n$('body').removeClass('no-js');\n```\n\n# documentation\n\nsee doc.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiswe%2Fminidom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiswe%2Fminidom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiswe%2Fminidom/lists"}