{"id":1166819,"name":"@scaleleap/pg-format","ecosystem":"npm","description":"A fully typed TypeScript and Node.js implementation of PostgreSQL format() to safely create dynamic SQL queries. SQL identifiers and literals are escaped to help prevent SQL injection.","homepage":"https://github.com/ScaleLeap/pg-format","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/ScaleLeap/pg-format","keywords_array":["escape","format","pg","pg-escape","pg-format","postgres","postgresql","query","sql injection"],"namespace":"scaleleap","versions_count":1,"first_release_published_at":"2021-05-23T03:44:45.633Z","latest_release_published_at":"2021-05-23T03:44:45.633Z","latest_release_number":"1.0.0","last_synced_at":"2026-04-30T07:17:42.564Z","created_at":"2022-04-08T12:40:05.363Z","updated_at":"2026-04-30T07:17:42.565Z","registry_url":"https://www.npmjs.com/package/@scaleleap/pg-format","install_command":"npm install @scaleleap/pg-format","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.0.0"}},"repo_metadata":{"id":51123446,"uuid":"369842181","full_name":"ScaleLeap/pg-format","owner":"ScaleLeap","description":"A fully typed TypeScript and Node.js implementation of PostgreSQL format() to safely create dynamic SQL queries. SQL identifiers and literals are escaped to help prevent SQL injection.","archived":false,"fork":false,"pushed_at":"2021-05-23T05:03:58.000Z","size":156,"stargazers_count":17,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T02:45:40.891Z","etag":null,"topics":["escape","format","pg","pg-escape","pg-format","postgres","postgresql","query","sql-injection"],"latest_commit_sha":null,"homepage":"https://npm.im/@scaleleap/pg-format","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/ScaleLeap.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-05-22T15:25:44.000Z","updated_at":"2024-11-26T17:51:00.000Z","dependencies_parsed_at":"2022-09-19T07:52:14.888Z","dependency_job_id":null,"html_url":"https://github.com/ScaleLeap/pg-format","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ScaleLeap/pg-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScaleLeap","download_url":"https://codeload.github.com/ScaleLeap/pg-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format/sbom","scorecard":{"id":126405,"data":{"date":"2025-08-11","repo":{"name":"github.com/ScaleLeap/pg-format","commit":"36b9fb3f4b45dcdde6b578fee7fb0d05ed563a39"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codecov.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/codecov.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/codecov.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/codecov.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/danger.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/danger.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/danger.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/danger.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/danger.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/danger.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/ScaleLeap/pg-format/test.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction 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/codecov.yml:1","Warn: no topLevel permission defined: .github/workflows/danger.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/ScaleLeap/pg-format/releases/43421026","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/ScaleLeap/pg-format/releases/43421026"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 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"}},{"name":"Vulnerabilities","score":0,"reason":"45 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-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","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-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-8gh8-hqwg-xf34","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-8cf7-32gw-wr33","Warn: Project is vulnerable to: GHSA-hjrf-2m68-5959","Warn: Project is vulnerable to: GHSA-qwph-4952-7xr6","Warn: Project is vulnerable to: GHSA-7cfr-5cjf-32p4","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-8g77-54rh-46hx","Warn: Project is vulnerable to: GHSA-q674-xm3x-2926","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","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-16T04:00:04.034Z","repository_id":51123446,"created_at":"2025-08-16T04:00:04.035Z","updated_at":"2025-08-16T04:00:04.035Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002976,"owners_count":26083491,"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-10T02:00:06.843Z","response_time":62,"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"},"owner_record":{"login":"ScaleLeap","name":"Scale Leap","uuid":"41709180","kind":"organization","description":"Custom software for Amazon sellers.","email":"info@scaleleap.com","website":"https://www.scaleleap.com","location":"Canada","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/41709180?v=4","repositories_count":14,"last_synced_at":"2025-09-30T02:40:47.189Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ScaleLeap","funding_links":[],"total_stars":444,"followers":23,"following":0,"created_at":"2022-11-13T07:04:09.846Z","updated_at":"2025-09-30T02:40:47.189Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScaleLeap","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScaleLeap/repositories"},"tags":[{"name":"v1.0.0","sha":"b895951e668efbc7b3a7abb1f52a995a129ce47f","kind":"commit","published_at":"2021-05-23T03:44:37.000Z","download_url":"https://codeload.github.com/ScaleLeap/pg-format/tar.gz/v1.0.0","html_url":"https://github.com/ScaleLeap/pg-format/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ScaleLeap/pg-format@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2025-10-10T06:54:54.751Z","dependent_packages_count":8,"downloads":139590,"downloads_period":"last-month","dependent_repos_count":66,"rankings":{"downloads":0.8885436967706042,"dependent_repos_count":1.6963666497188945,"dependent_packages_count":2.5014552202694196,"stargazers_count":8.481662186046195,"forks_count":15.487242285130625,"docker_downloads_count":1.1368836977542223,"average":5.032025622614993},"purl":"pkg:npm/%40scaleleap/pg-format","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@scaleleap/pg-format","docker_dependents_count":1,"docker_downloads_count":387,"usage_url":"https://repos.ecosyste.ms/usage/npm/@scaleleap/pg-format","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@scaleleap/pg-format/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-10T01:39:45.130Z","issues_count":5,"pull_requests_count":1,"avg_time_to_close_issue":10229.0,"avg_time_to_close_pull_request":9.0,"issues_closed_count":1,"pull_requests_closed_count":1,"pull_request_authors_count":1,"issue_authors_count":3,"avg_comments_per_issue":1.6,"avg_comments_per_pull_request":1.0,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":1,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":3.0,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fpg-format/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@scaleleap%2Fpg-format/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@scaleleap%2Fpg-format/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@scaleleap%2Fpg-format/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@scaleleap%2Fpg-format/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@scaleleap%2Fpg-format/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@scaleleap%2Fpg-format/codemeta","maintainers":[{"uuid":"moltar","login":"moltar","name":null,"email":"rf@romanfilippov.com","url":null,"packages_count":24,"html_url":"https://www.npmjs.com/~moltar","role":null,"created_at":"2022-11-21T01:05:46.151Z","updated_at":"2022-11-21T01:05:46.151Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/moltar/packages"},{"uuid":"scalebot","login":"scalebot","name":null,"email":"scale-bot@scaleleap.com","url":null,"packages_count":19,"html_url":"https://www.npmjs.com/~scalebot","role":null,"created_at":"2022-11-21T01:05:46.057Z","updated_at":"2022-11-21T01:05:46.057Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/scalebot/packages"}]}