{"id":37902399,"url":"https://github.com/martingreilinger/ppjg","last_synced_at":"2026-01-18T11:11:33.846Z","repository":{"id":40764536,"uuid":"272218065","full_name":"martingreilinger/ppjg","owner":"martingreilinger","description":"Remove development bloat form your published package.json","archived":false,"fork":false,"pushed_at":"2023-01-02T14:36:47.000Z","size":791,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T03:14:56.646Z","etag":null,"topics":["cli","development","generator","package-json","tool"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martingreilinger.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}},"created_at":"2020-06-14T14:26:09.000Z","updated_at":"2024-10-09T09:47:34.000Z","dependencies_parsed_at":"2023-02-01T03:15:58.119Z","dependency_job_id":null,"html_url":"https://github.com/martingreilinger/ppjg","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/martingreilinger/ppjg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martingreilinger%2Fppjg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martingreilinger%2Fppjg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martingreilinger%2Fppjg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martingreilinger%2Fppjg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martingreilinger","download_url":"https://codeload.github.com/martingreilinger/ppjg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martingreilinger%2Fppjg/sbom","scorecard":{"id":621649,"data":{"date":"2025-08-11","repo":{"name":"github.com/martingreilinger/ppjg","commit":"5b89e1cd269753682c608ebaa0fd04d79aa646aa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"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":"Code-Review","score":0,"reason":"Found 0/10 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/martingreilinger/ppjg/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/martingreilinger/ppjg/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/martingreilinger/ppjg/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 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"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-21T05:21:24.327Z","repository_id":40764536,"created_at":"2025-08-21T05:21:24.327Z","updated_at":"2025-08-21T05:21:24.327Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28491907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"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":["cli","development","generator","package-json","tool"],"created_at":"2026-01-16T17:05:37.707Z","updated_at":"2026-01-18T11:11:33.816Z","avatar_url":"https://github.com/martingreilinger.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Publish Package JSON Generator\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/martingreilinger/ppjg/CI)](https://github.com/martingreilinger/ppjg/actions?query=workflow%3ACI) [![npm](https://img.shields.io/npm/v/ppjg)](https://www.npmjs.com/package/ppjg) [![NPM](https://img.shields.io/npm/l/ppjg)](https://lbesson.mit-license.org/)\n\nGenerate a dedicated `package.json` for publishing without development bloat.\n\n- Only **include properties** you need for publishing\n- **Override** development **values**\n- **Addition** of new **properties**\n\n## Quick Start\n\n- Install the **ppjg** as a development dependency\n````shell script\nnode i -D ppjg\n````\n- Create a new _publish config_ called `ppj.config.js` in your project root directory\n- Define which `package.json` keys to _persist_ and which to _override_:\n````javascript\nmodule.exports = {\n  persist: ['author', 'dependencies'],\n  alter: {\n    version: process.env.VERSION\n  }\n};\n````\n- Run **ppjg** by executing the `generatePublishPackageJson` function or by executing the binary via Node\n````shell script\nVERSION='V1' npx ppjg\n````\n- Generated example `./out/package.json`\n````json\n{\n  \"author\": \"John Doe\",\n  \"dependencies\": {\n    \"example\": \"1.0.0\"\n  },\n  \"version\": \"V1\"\n}\n````\n## Configuration\n\n### The Publish-Configuration\n\nThe publish-configuration defines which properties of the projects `package.json` are kept and which will be overwritten.\nBy default, the publish-configuration is defined inside the `ppj.config.js`.\nTo provide a differently named configuration, see the [Generator Configuration](#the-generator-configuration) section.\n\nProperty | Description | Config Property\n---------|-------------|----------------\n`persist`| An array of property names which will be kept inside the publish-configuration| `{ persist: ['author', 'name'] }` \n`alter`  | An object of new or altered properties and their values| `{ alter: { bin: './cli.js' } }` \n\n### The Generator Configuration\n\nProperty | Description | CLI Flag | Config Property\n---------|-------------|----------|----------------\nOutput Directory|Defines the location of the generated `package.json`|`-o, --outDir DIRECTORY`|`{ outDir: DIRECTORY }`\nPublish Config File|File name of the config used for the generation|`-c, --config FILE`|`{publishConfigFileName: FILE}`\n\n## Usage\n\n### Binary\n\nThe provided binary offers easy invocation via the _CLI_ or _NPM script_.\n\n#### CLI\n\n- Directly execute the binary with `npx`:\n````shell script\nnpx ppjg [options]\n````\n\n#### NPM script\n\n- Create a new script entry invoking the binary:\n````json\n{\n  \"scripts\": {\n    \"generatePPJ\": \"ppjg [options]\"\n  }\n}\n````\n\n- Run the script:\n````shell script\nnpm run generatePPJ\n````\n\n### Programmatically\n\n- It is also possible to invoke the generator function directly:\n````typescript\nimport { generatePublishPackageJson, GeneratorConfigModel } from 'ppjg';\n\nconst config: Partial\u003cGeneratorConfigModel\u003e | undefined = { /* optional config data */ }\n\ngeneratePublishPackageJson(config);\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartingreilinger%2Fppjg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartingreilinger%2Fppjg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartingreilinger%2Fppjg/lists"}