{"id":28238183,"url":"https://github.com/branneman/electrolyte-assembly-mapper","last_synced_at":"2026-04-29T19:31:33.565Z","repository":{"id":57221498,"uuid":"113556635","full_name":"branneman/electrolyte-assembly-mapper","owner":"branneman","description":"Assembly mapper and loader for Electrolyte","archived":false,"fork":false,"pushed_at":"2017-12-10T19:57:53.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T05:26:00.186Z","etag":null,"topics":["dependency-injection","electrolyte","electrolyte-assembly-mapper","inversion-of-control","node-js","nodejs"],"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/branneman.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":"2017-12-08T09:26:15.000Z","updated_at":"2017-12-10T14:36:16.000Z","dependencies_parsed_at":"2022-08-29T02:12:52.109Z","dependency_job_id":null,"html_url":"https://github.com/branneman/electrolyte-assembly-mapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/branneman/electrolyte-assembly-mapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branneman%2Felectrolyte-assembly-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branneman%2Felectrolyte-assembly-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branneman%2Felectrolyte-assembly-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branneman%2Felectrolyte-assembly-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/branneman","download_url":"https://codeload.github.com/branneman/electrolyte-assembly-mapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branneman%2Felectrolyte-assembly-mapper/sbom","scorecard":{"id":251407,"data":{"date":"2025-08-11","repo":{"name":"github.com/branneman/electrolyte-assembly-mapper","commit":"c28eb030750ef609a5a09826267d5bb5992ada64"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T08:33:02.423Z","repository_id":57221498,"created_at":"2025-08-17T08:33:02.423Z","updated_at":"2025-08-17T08:33:02.423Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32440845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dependency-injection","electrolyte","electrolyte-assembly-mapper","inversion-of-control","node-js","nodejs"],"created_at":"2025-05-19T01:12:30.260Z","updated_at":"2026-04-29T19:31:33.560Z","avatar_url":"https://github.com/branneman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electrolyte-assembly-mapper\n[![Build Status](https://travis-ci.org/branneman/electrolyte-assembly-mapper.svg?branch=master)](https://travis-ci.org/branneman/electrolyte-assembly-mapper)\n\nAn Assembly Mapper and Loader for the [Electrolyte](https://github.com/jaredhanson/electrolyte) DI/IoC Container in Node.js.\n\nThis npm module can be used to map any dependency loaded via Electrolyte to another dependency, like a stub instead of the real implementation.\n\n## Installation\n```sh\nnpm install electrolyte-assembly-mapper --save\n```\n\n## Use case\nGiven this example web project structure:\n\n```text\napp/\n  areas/\n    homepage/\n      controller.js\n  lib/\n    content-client/\n      index.js\n      stub.js\n  bootstrap.js\n  router.js\nindex.js\npackage.json\n```\n\nIn `app/areas/homepage/controller.js` you require the `content-client` dependency:\n\n```js\nmodule.exports = factory\nmodule.exports['@singleton'] = true\nmodule.exports['@require'] = ['lib/content-client']\n\nfunction factory (content) {\n  return (req, res) =\u003e {\n    const home = await content.getPage('homepage')\n    res.end(`\u003ch1\u003e${home.title}\u003c/h1\u003e`)\n  }\n}\n```\n\nIf you're bootstrapping [Electrolyte](https://github.com/jaredhanson/electrolyte) with the **electrolyte-assembly-mapper** from your entrypoint file (`index.js`):\n\n```js\n// Configure DI/IoC container\nconst IoC = require('electrolyte')\nconst loader = require('electrolyte-assembly-mapper')('.ioc-mapper.json')\nIoC.use(loader('.', 'app'))\nIoC.use(IoC.node_modules())\n\n// Start app\nIoC.create('app/bootstrap')\n  .then(app =\u003e app())\n```\n\nThe `.ioc-mapper.json` will instruct to map the `content-client` to it's stub:\n\n```json\n{\n  \"lib/content-client\": \"lib/content-client/stub\"\n}\n```\n\nIn this example, it's best to put `.ioc-mapper.json` in your `.gitignore` file, since stubs are only used for development.\n\nIf the `.ioc-mapper.json` file is not found, the loader will only load from the specified directories (in the example `.` and `app`), and not map to anything. This way you can leave out the `.ioc-mapper.json` from your deployment package to production.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranneman%2Felectrolyte-assembly-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbranneman%2Felectrolyte-assembly-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranneman%2Felectrolyte-assembly-mapper/lists"}