{"id":29215477,"url":"https://github.com/aackerman/container","last_synced_at":"2025-07-03T00:09:51.716Z","repository":{"id":25938130,"uuid":"29379554","full_name":"aackerman/container","owner":"aackerman","description":null,"archived":false,"fork":false,"pushed_at":"2015-01-22T01:47:34.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T03:02:15.843Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aackerman.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}},"created_at":"2015-01-17T04:20:11.000Z","updated_at":"2015-01-22T01:47:34.000Z","dependencies_parsed_at":"2022-08-02T16:30:34.468Z","dependency_job_id":null,"html_url":"https://github.com/aackerman/container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aackerman/container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aackerman%2Fcontainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aackerman%2Fcontainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aackerman%2Fcontainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aackerman%2Fcontainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aackerman","download_url":"https://codeload.github.com/aackerman/container/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aackerman%2Fcontainer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234966,"owners_count":23434922,"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":"2025-07-03T00:09:50.668Z","updated_at":"2025-07-03T00:09:51.663Z","avatar_url":"https://github.com/aackerman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## container\n\nContainer, Registry, Resolver Dependency Injection.\n\nLifted from Ember and modified to work without certain Ember assumptions and dependencies.\n\nA Container retains a cache of instance objects, a Registry retains a cache of constructor/factory objects and type injections, a Resolver is used to locate constructor/factory objects on a global namespace or within a module system. This allows mapping a `type:name` formatted string to a value on a global namespace or an exported module value.\n\n### Resolving on a namespace\n\n```\nclass App extends Namespace {\n  constructor(options) {\n    super(options);\n  }\n  getSerializer() {\n    return this.__container__.lookup('serializers:application', {\n      singleton: false\n    });\n  }\n};\n\nApp.ApplicationSerializer = function(){};\n\nvar app = new App();\nvar s = app.getSerializer();\ns instanceof App.ApplicationSerializer; // true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faackerman%2Fcontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faackerman%2Fcontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faackerman%2Fcontainer/lists"}