{"id":21352190,"url":"https://github.com/wolfchamane/amjs-factory","last_synced_at":"2025-03-16T04:42:12.980Z","repository":{"id":34049753,"uuid":"167214143","full_name":"Wolfchamane/amjs-factory","owner":"Wolfchamane","description":"Provides a unique registry engine for singletons","archived":false,"fork":false,"pushed_at":"2023-01-06T01:38:32.000Z","size":340,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T22:48:09.929Z","etag":null,"topics":["commonjs","es6","factory","javascript","nodejs","singleton","unique-registry-engine"],"latest_commit_sha":null,"homepage":"","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/Wolfchamane.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":"2019-01-23T16:23:10.000Z","updated_at":"2020-09-08T11:07:37.000Z","dependencies_parsed_at":"2023-01-15T04:13:47.608Z","dependency_job_id":null,"html_url":"https://github.com/Wolfchamane/amjs-factory","commit_stats":null,"previous_names":["wolfchamane/am-factory"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wolfchamane%2Famjs-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wolfchamane%2Famjs-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wolfchamane%2Famjs-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wolfchamane%2Famjs-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wolfchamane","download_url":"https://codeload.github.com/Wolfchamane/amjs-factory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826785,"owners_count":20354220,"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":["commonjs","es6","factory","javascript","nodejs","singleton","unique-registry-engine"],"created_at":"2024-11-22T03:12:57.012Z","updated_at":"2025-03-16T04:42:12.956Z","avatar_url":"https://github.com/Wolfchamane.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @amjs/factory 0.2.9\n\n\u003e Provides a unique registry engine for singletons\n\n[![NPM](https://nodei.co/npm/@amjs/factory.png)](https://www.npmjs.com/package/@amjs/factory)\n\n## Installation\n\n```bash\n$ npm i --save @amjs/factory\n```\n\n## Use\n\n```javascript\nconst AmFactory = require('@amjs/factory');\n\nclass MyClass\n{\n    constructor()\n    {\n        this.index = 0;\n    }\n\n    setProperties(values)\n    {\n        // do somthing with 'values'\n    }\n}\n\n// Registration\nAmFactory.register('MyClass', MyClass);\n\n// Creation\nconst _instance = AmFactory.create('MyClass', { index : 1 });\nconsole.log(_instance.index); // 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfchamane%2Famjs-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolfchamane%2Famjs-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfchamane%2Famjs-factory/lists"}