{"id":21877354,"url":"https://github.com/nodebb-community/nodebb-plugin-frontend-lodash","last_synced_at":"2025-08-30T09:15:38.254Z","repository":{"id":76942308,"uuid":"62325067","full_name":"NodeBB-Community/nodebb-plugin-frontend-lodash","owner":"NodeBB-Community","description":"This plugin provides a yet another but good way to include lodash in your plugin","archived":false,"fork":false,"pushed_at":"2016-07-03T03:17:16.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-09T12:28:58.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NodeBB-Community.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-30T16:09:21.000Z","updated_at":"2019-01-11T23:31:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"5879b422-bd90-4238-93e6-b0e3ddc84fa6","html_url":"https://github.com/NodeBB-Community/nodebb-plugin-frontend-lodash","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"c14b6178f678aa5146472d1ce03507fe273a7188"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NodeBB-Community/nodebb-plugin-frontend-lodash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB-Community%2Fnodebb-plugin-frontend-lodash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB-Community%2Fnodebb-plugin-frontend-lodash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB-Community%2Fnodebb-plugin-frontend-lodash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB-Community%2Fnodebb-plugin-frontend-lodash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NodeBB-Community","download_url":"https://codeload.github.com/NodeBB-Community/nodebb-plugin-frontend-lodash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB-Community%2Fnodebb-plugin-frontend-lodash/sbom","scorecard":{"id":102276,"data":{"date":"2025-08-11","repo":{"name":"github.com/NodeBB-Community/nodebb-plugin-frontend-lodash","commit":"c14b6178f678aa5146472d1ce03507fe273a7188"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/9 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":"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":"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":"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":"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":"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":"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"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}}]},"last_synced_at":"2025-08-15T10:23:08.134Z","repository_id":76942308,"created_at":"2025-08-15T10:23:08.134Z","updated_at":"2025-08-15T10:23:08.134Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272828810,"owners_count":25000091,"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-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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-28T08:08:59.429Z","updated_at":"2025-08-30T09:15:38.228Z","avatar_url":"https://github.com/NodeBB-Community.png","language":"JavaScript","readme":"### Easy lodash for NodeBB on client side\n\nDo you use `lodash` library on client side in your plugins?  \nI do a lot. And I find it quite troublesome to put the library almost in each and every plugin I make. Furthermore, it rather more troublesome then to `require` the library in a manner like this:\n\n```js\nrequire(['../../plugins/nodebb-plugin-my-long-plugin-name/public/js/vendor/lodash/lodash.min'], function (_) {\n    //\n});\n```\n\nNow imagine if you use the `lodash` library in your plugin a, plugin b and plugin c. All of them will `require` the library from themself. Since all of the plugins have different base urls, `RequireJS` will make three different HTTP requests.\n\n#### Gimme a break!\n\nAfter installing this plugin you will be able to:\n```js\nrequire(['lodash'], function (_) {\n    // now you can use the latest \"lodash\": \"^4.0.0\"\n});\n```\n\nThat's it, nothing more, nothing less. I hope it will helps you.\n\n#### Installation\n```sh\ncd /path/to/nodebb\nnpm install nodebb-plugin-frontend-lodash\n```\nOr via NodeBB Admin panel.\n\nTo get this plugin installed automatically along with your plugin, just specify in your `plugin.json`\n```js\n\"dependencies\": {\n\t\"nodebb-plugin-frontend-lodash\": \"^0\"\n},\n\"peerDependencies\": {\n\t\"nodebb-plugin-frontend-lodash\": \"^0\"\n}\n```\nWhy both `dependencies` and `peerDependencies`? That's because of different behavior in npm v2 and npm v3. You can read more about the issue and the workaround in [this blog post](https://codingwithspike.wordpress.com/2016/01/21/dealing-with-the-deprecation-of-peerdependencies-in-npm-3/)\n\n**Don't forget to Enable the plugin in the Admin panel after installing. And to instruct your plugin users to do that little extra step!**\n\n#### Information\nThe plugin:  \n1. doesn't modify any source of NodeBB  \n2. gets `lodash.min.js` from NodeBB `node_modules`  \n3. injects `lodash` directly to `RequireJS` way before DOM is ready  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb-community%2Fnodebb-plugin-frontend-lodash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodebb-community%2Fnodebb-plugin-frontend-lodash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb-community%2Fnodebb-plugin-frontend-lodash/lists"}