{"id":37542861,"url":"https://github.com/aolde/moduler.js","last_synced_at":"2026-01-16T08:47:30.778Z","repository":{"id":77645802,"uuid":"11882665","full_name":"aolde/moduler.js","owner":"aolde","description":"JavaScript library for binding modules to DOM elements.","archived":false,"fork":false,"pushed_at":"2024-07-30T19:51:27.000Z","size":959,"stargazers_count":12,"open_issues_count":5,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-07-31T00:04:42.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://aolde.github.io/moduler.js","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/aolde.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":"2013-08-04T18:09:56.000Z","updated_at":"2024-07-30T19:51:30.000Z","dependencies_parsed_at":"2023-02-23T22:00:20.713Z","dependency_job_id":null,"html_url":"https://github.com/aolde/moduler.js","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aolde/moduler.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aolde%2Fmoduler.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aolde%2Fmoduler.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aolde%2Fmoduler.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aolde%2Fmoduler.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aolde","download_url":"https://codeload.github.com/aolde/moduler.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aolde%2Fmoduler.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-16T08:47:30.684Z","updated_at":"2026-01-16T08:47:30.755Z","avatar_url":"https://github.com/aolde.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"moduler.js\n==========\n\n\u003e JavaScript library for binding modules to DOM elements.\n\n## Getting Started\n\nGet the [latest version](https://github.com/simplyio/moduler.js/releases) from the releases in Github and include the moduler.js in your HTML page. jQuery is a prerequisite for moduler.js to work.\n\n## Quick Example\n\n**1.** Create a new module type:\n\n```JavaScript\n(function () {\n    \"use strict\";\n\n    var moduleObj = moduler('hello-world', {\n        defaults: {\n            message: 'Hello ',\n        },\n        \n        init: function (module) {\n        \tmodule.$element.click(function() {\n        \t\talert(module.settings.message + module.$element.text());\n        \t});\n        }\n    });\n})();\n```\n\n**2.** Apply it to an element:\n\n```html\n\u003cdiv\u003e\n    \u003cspan data-module=\"hello-world\" data-hello-world=\"message: 'Hey '\"\u003ePeter Griffin\u003c/span\u003e\n\u003c/div\u003e\n```\n\n**3.** Click on \"Peter Griffin\" and an alert box will appear saying ``Hey Peter Griffin`` because we overrided the default message (``\"Hello \"``).\n\n## Samples\n\nEvery module has a sample that you can view at: https://rawgit.com/simplyio/moduler.js/master/src/index.html\n\n## Browser Support\n\nTested in the following browsers, but will likely work in all modern browsers.\n\n- Internet Explorer 8 and later.\n- Chrome, latest.\n- Firefox, latest.\n\n## Documentation\n\n- [Creating your first module](https://github.com/simplyio/moduler.js/wiki/Creating-your-first-module)\n- [Explanation of a module](https://github.com/simplyio/moduler.js/wiki/Example-module-explained)\n\n## Issues\n\nReport bugs through the [issue list](https://github.com/simplyio/moduler.js/issues) on Github.\n\n## Tests\n\nThe QUnit testing framework is used to test most of moduler.js's features. You can run them by opening tests/tests.html or navigate to http://simplyio.github.io/moduler.js/tests/tests.html.\n\n## License\n\nModuler.js is freely distributable under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faolde%2Fmoduler.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faolde%2Fmoduler.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faolde%2Fmoduler.js/lists"}