{"id":23465798,"url":"https://github.com/carlos-benedetti/stuckjs","last_synced_at":"2025-04-12T16:55:14.138Z","repository":{"id":106187416,"uuid":"227815957","full_name":"Carlos-Benedetti/stuckJs","owner":"Carlos-Benedetti","description":"two-way data binding in base js","archived":false,"fork":false,"pushed_at":"2019-12-13T10:36:21.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T03:19:50.146Z","etag":null,"topics":["dom","javascript","two-way-data-binding"],"latest_commit_sha":null,"homepage":"","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/Carlos-Benedetti.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":"2019-12-13T10:36:04.000Z","updated_at":"2022-12-02T16:54:17.000Z","dependencies_parsed_at":"2023-06-16T01:45:15.344Z","dependency_job_id":null,"html_url":"https://github.com/Carlos-Benedetti/stuckJs","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/Carlos-Benedetti%2FstuckJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carlos-Benedetti%2FstuckJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carlos-Benedetti%2FstuckJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carlos-Benedetti%2FstuckJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Carlos-Benedetti","download_url":"https://codeload.github.com/Carlos-Benedetti/stuckJs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248601505,"owners_count":21131609,"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","javascript","two-way-data-binding"],"created_at":"2024-12-24T11:38:19.671Z","updated_at":"2025-04-12T16:55:14.107Z","avatar_url":"https://github.com/Carlos-Benedetti.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stukJs- Simplified two-way data bind for JS\n\n[![NPM](https://nodei.co/npm/stukjs.png)](https://nodei.co/npm/stukjs/)\n\n## Installation\n### npm:\n```shell\n$ npm i stukjs --save\n```\n### browser:\n```html\n\u003cscript src=\"https://unpkg.com/stukjs@latest/Stuk.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nPass an object containing all the variables that will be used by the page to `stuk.bindpage()`, and then add the `stuk` attribute to elements that should bind to a variable. The value passed to the `stuk` attribute should be an existing key in the object passed to `stuk.bindpage()`.\nChanges to the bound variable's value will be reflected in the page, and changes made to the bound element's value will also propagate back to the script.\n\n## Example\n\n```html\n\u003cinput stuk=\"name\"\u003e\n\u003cscript\u003e\n    Stuk.bindPage({name:\"Benedetti\"});\n\u003c/script\u003e\n```\n\n### Notes\n\nthis code was based on: [wintellect](https://www.wintellect.com/data-binding-pure-javascript/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlos-benedetti%2Fstuckjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlos-benedetti%2Fstuckjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlos-benedetti%2Fstuckjs/lists"}