{"id":19603794,"url":"https://github.com/lin-xi/module","last_synced_at":"2025-07-23T18:33:46.218Z","repository":{"id":71694894,"uuid":"41536249","full_name":"lin-xi/module","owner":"lin-xi","description":"javascript module.js","archived":false,"fork":false,"pushed_at":"2015-08-28T08:54:38.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T15:33:14.805Z","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/lin-xi.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}},"created_at":"2015-08-28T08:32:10.000Z","updated_at":"2015-08-28T08:34:21.000Z","dependencies_parsed_at":"2023-03-11T11:19:43.761Z","dependency_job_id":null,"html_url":"https://github.com/lin-xi/module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lin-xi/module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fmodule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fmodule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fmodule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fmodule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lin-xi","download_url":"https://codeload.github.com/lin-xi/module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fmodule/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266732424,"owners_count":23976032,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-11T09:32:51.252Z","updated_at":"2025-07-23T18:33:46.161Z","avatar_url":"https://github.com/lin-xi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# module\njavascript module.js\n\n\njavascript module framework\n\n\nkey word:  module, require, use\n\nno configuration\n\n##usage:\n\n1. define a module\n\n### /core/Base.js\n```\n  module(function(){\n\t  'use strict';\n\t  ....\n\t});\n```\n\n2. require a module in another module\n### /dust.js\n```\n  var dust = {\n      \"core\": require('./core/Base')\n\t};\n\n```\n\n3. require a module in common js file\n```\n  use('/core/Base.js', function(Base){\n    var base = new Base();\n    \n  });\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flin-xi%2Fmodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flin-xi%2Fmodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flin-xi%2Fmodule/lists"}