{"id":20906129,"url":"https://github.com/distributedlife/plug-n-play","last_synced_at":"2025-07-26T21:12:46.355Z","repository":{"id":30212224,"uuid":"33763206","full_name":"distributedlife/plug-n-play","owner":"distributedlife","description":"A plugin system based around the concept of roles.","archived":false,"fork":false,"pushed_at":"2015-08-09T22:08:00.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T12:53:37.205Z","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/distributedlife.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-04-11T04:56:20.000Z","updated_at":"2015-05-04T11:00:42.000Z","dependencies_parsed_at":"2022-09-21T01:52:39.109Z","dependency_job_id":null,"html_url":"https://github.com/distributedlife/plug-n-play","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fplug-n-play","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fplug-n-play/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fplug-n-play/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fplug-n-play/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distributedlife","download_url":"https://codeload.github.com/distributedlife/plug-n-play/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243297559,"owners_count":20268799,"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":"2024-11-18T13:29:10.358Z","updated_at":"2025-03-12T21:29:11.296Z","avatar_url":"https://github.com/distributedlife.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plug-n-play\n\n# usage\n```javascript\nvar plugins = require('plug-n-play').configure(['Set']);\nplugins.load(require('/path/to/set/plugin'));\nplugins.load({\n  type: 'MySweetPlugin'\n  deps: ['Set']\n  func: function(set) {\n    return {\n      count: function () {\n        return set().length;\n      }\n    }\n  };\n});\n\nvar define = plugins.get('DefinePlugin');\ndefine('Set', function() {\n  return 4;\n});\n\nvar mySweetPlugin = plugins.get('MySweetPlugin');\nmySweetPlugin.count();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Fplug-n-play","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributedlife%2Fplug-n-play","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Fplug-n-play/lists"}