{"id":28419032,"url":"https://github.com/lcneves/pug-module","last_synced_at":"2026-04-30T08:36:25.267Z","repository":{"id":85067938,"uuid":"90823701","full_name":"lcneves/pug-module","owner":"lcneves","description":"Compiles pug files into a module that can be required.","archived":false,"fork":false,"pushed_at":"2018-07-25T20:02:36.000Z","size":1486,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T02:14:08.772Z","etag":null,"topics":["browserify","module","nodejs","pug","pug-template-engine","require","webpack"],"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/lcneves.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-10T05:18:26.000Z","updated_at":"2018-07-25T20:02:37.000Z","dependencies_parsed_at":"2023-04-25T05:14:13.852Z","dependency_job_id":null,"html_url":"https://github.com/lcneves/pug-module","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.07999999999999996,"last_synced_commit":"0b975a91c3c5c28507cd244dd7f2d8a9a38b2c55"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lcneves/pug-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcneves%2Fpug-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcneves%2Fpug-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcneves%2Fpug-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcneves%2Fpug-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lcneves","download_url":"https://codeload.github.com/lcneves/pug-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcneves%2Fpug-module/sbom","scorecard":{"id":581151,"data":{"date":"2025-08-11","repo":{"name":"github.com/lcneves/pug-module","commit":"0b975a91c3c5c28507cd244dd7f2d8a9a38b2c55"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/25 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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-p493-635q-r6gr","Warn: Project is vulnerable to: GHSA-3965-hpx2-q597"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T19:12:31.631Z","repository_id":85067938,"created_at":"2025-08-20T19:12:31.631Z","updated_at":"2025-08-20T19:12:31.631Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017672,"owners_count":26086125,"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-10-14T02:00:06.444Z","response_time":60,"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":["browserify","module","nodejs","pug","pug-template-engine","require","webpack"],"created_at":"2025-06-04T14:11:44.630Z","updated_at":"2025-10-14T02:14:09.124Z","avatar_url":"https://github.com/lcneves.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pug-module\n\nCompiles multiple .pug files into a module that can be used in Node, Browserify or Webpack apps with `require`.\n\n## Getting started\n\n```\n$ npm install pug-module --save-dev\n$ npm install pug-runtime --save\n```\n\npackage.json:\n```\n\"scripts\": {\n  \"build:pug\": \"pug-module views/*.pug -o lib/templates.js\",\n  // [...]\n```\n\nBack to the console:\n```\nnpm run build:pug\n```\n\nYour app:\n```\nconst templates = require('lib/templates.js');\n\nconsole.log(templates.helloWorld());\n// \u003cdiv\u003e\u003cp\u003eHello world!\u003c/p\u003e\u003c/div\u003e\n\nconsole.log(templates.helloParameter({ parameter: 'Pug' });\n// \u003cdiv\u003e\u003cp\u003eHello Pug!\u003c/p\u003e\u003c/div\u003e\n```\n\n## Usage\n\n```\nnode_modules/.bin/pug-module [options] path/to/files*.pug -o path/to/compiled.js\n```\n\n### Options\n\n`-q, --quiet`: Do not output success message to console.\n\n`-r, --recursive`: Find all pug files under the specified directories\nand generate camelcase name from the relative directory/file path.\nGiven mydir as a parameter and mydir/foo/bar/helloWorld.pug, the module name will resolve to fooBarHelloWorld(...).\n\nA directory structure like this:\n```\nmail\n--welcome\n----subject.pug\n----html.pug\n--confirm\n----subject.pug\n----html.pug\n```\nwill generate the modules\n`welcomeSubject`, `welcomeHtml`, `confirmSubject`, and `confirmHtml`.\n\n### How is the template function name composed?\n\nThe `pug-module` tool will read each `.pug` filename, strip the extension, convert it to camelCase and strip all non-alphanumeric characters.\n\n```\nviews/some_cool-template+2.pug\n// compiles to\nmodule.exports['someCoolTemplate2'] = function (...)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcneves%2Fpug-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcneves%2Fpug-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcneves%2Fpug-module/lists"}