{"id":19146754,"url":"https://github.com/lcluber/wee.js","last_synced_at":"2026-05-18T14:09:03.605Z","repository":{"id":51091092,"uuid":"126086366","full_name":"LCluber/Wee.js","owner":"LCluber","description":"Dom handling library","archived":false,"fork":false,"pushed_at":"2021-05-24T12:09:49.000Z","size":1722,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-03T16:49:59.209Z","etag":null,"topics":["javascript","typescript"],"latest_commit_sha":null,"homepage":"http://weejs.lcluber.com/","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/LCluber.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-20T21:44:25.000Z","updated_at":"2022-04-17T14:17:03.000Z","dependencies_parsed_at":"2022-08-02T18:30:10.168Z","dependency_job_id":null,"html_url":"https://github.com/LCluber/Wee.js","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCluber%2FWee.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCluber%2FWee.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCluber%2FWee.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCluber%2FWee.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LCluber","download_url":"https://codeload.github.com/LCluber/Wee.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240229976,"owners_count":19768597,"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":["javascript","typescript"],"created_at":"2024-11-09T07:47:55.462Z","updated_at":"2026-05-18T14:09:03.519Z","avatar_url":"https://github.com/LCluber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Synopsis\n\n**[Wee.js](https://github.com/LCluber/Wee.js)** is an open source Binding and DOM handling library written in Typescript.\n\n## Motivation\n\nThe main purpose of this library is to provide the usual basic tools for strings, numbers and DOM manipulation.\n\n## Installation\n\n### npm\n\n```bash\n$ npm i @lcluber/weejs\n```\n\n### Yarn\n\n```bash\n$ yarn add @lcluber/weejs\n```\n\n## Usage\n\n```html\n\u003cinput id=\"signupEmailMsg\" \\ value=\"\" /\u003e\n\u003cselect id=\"shaders\"\u003e\u003c/select\u003e\n```\n\n### ES6\n\n```javascript\nimport { Dom, Binding } from \"@lcluber/weejs\";\n\n// populate select tag with two options using addHTMLElement method\nlet shaders = {\n  test1: \"test1\",\n  test2: \"test2\"\n};\nlet select = Dom.findById(\"shaders\");\nfor (var property in shaders) {\n  if (shaders.hasOwnProperty(property)) {\n    Dom.addHTMLElement(select, \"option\", {\n      textContent: property,\n      value: property\n    });\n  }\n}\n\n// Bind input style\nvar signupEmailMsg = new Binding(\n  \"signupEmailMsg\",\n  \"style.visibility\",\n  \"hidden\"\n);\n// Then update it.\nsignupEmailMsg.update(\"visible\");\n```\n\n### ES5\n\n```html\n\u003cscript src=\"node-modules/@lcluber/weejs/dist/wee.iife.min.js\"\u003e\u003c/script\u003e\n```\n\n```javascript\n// populate select tag with two options using addHTMLElement method\nvar shaders = {\n  test1: \"test1\",\n  test2: \"test2\"\n};\nvar select = Wee.Dom.findById(\"shaders\");\nfor (var property in shaders) {\n  if (shaders.hasOwnProperty(property)) {\n    Wee.Dom.addHTMLElement(select, \"option\", {\n      textContent: property,\n      value: property\n    });\n  }\n}\n\n// Bind input style\nvar signupEmailMsg = new Wee.Binding(\n  \"signupEmailMsg\",\n  \"style.visibility\",\n  \"hidden\"\n);\n\n// Then update it.\nsignupEmailMsg.update(\"visible\");\n```\n\n## API Reference\n\n### DOM handling\n\n```javascript\n\ntype HTMLElements = HTMLElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLProgressElement | HTMLCanvasElement | HTMLIFrameElement;\n\nstatic Dom.findById(id: string): HTMLElements | null {}\nstatic Dom.findByClass(className: string): HTMLElements[] | null {}\nstatic Dom.findByTag(tagName: string): HTMLElements[] | null {}\n\nstatic Dom.showElement(element: string | HTMLElements): HTMLElements | null {}\nstatic Dom.hideElement(element: string | HTMLElements): HTMLElements | null {}\nstatic Dom.styleElement( element:   string | HTMLElements,\n                         parameter: string | number,\n                         value:     string\n                        ): HTMLElements | null {}\n\nstatic Dom.addHTMLElement( parentElement:           string | HTMLElement,\n                           childElementType:        string,\n                           childElementAttributes?: HTMLParameters\n                         ): HTMLElements {}\nstatic Dom.clearHTMLElement(element: string | HTMLElement): HTMLElement | null {}\n\nstatic Dom.scrollToBottom(HtmlElement: HTMLElements): void {}\nstatic Dom.scrollToTop(HtmlElement: HTMLElements): void {}\n\nstatic Dom.showOverflow(): void {}\nstatic Dom.hideOverflow(): void {}\n\nstatic Dom.getInputValue(element: string | HTMLElement): string | null {}\nstatic Dom.clearInputValue(element: string | HTMLElement): HTMLElement | null {}\n\nstatic Dom.focusOn(element: string | HTMLElements): HTMLElements | null {}\n\n```\n\n### Binding\n\n```javascript\n\nnew Binding(\n  element: string | HTMLElement | HTMLElement[],\n  property: string,\n  value: string | number\n);\nBinding.update(value: string | number): void {}\n\n```\n\n## Contributors\n\nWee.js is still in early development and I would be glad to get all the help you can provide for this project.\nTo contribute you can clone the project on **[GitHub](https://github.com/LCluber/Wee.js)** and See **NOTICE.md** for detailed installation walkthrough.\n\n## License\n\n**[MIT](https://github.com/LCluber/Wee.js/blob/master/LICENSE.md)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcluber%2Fwee.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcluber%2Fwee.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcluber%2Fwee.js/lists"}