{"id":16330413,"url":"https://github.com/nixinova/pack-format","last_synced_at":"2025-10-08T14:12:42.683Z","repository":{"id":57317626,"uuid":"332111399","full_name":"Nixinova/pack-format","owner":"Nixinova","description":"Retrieve the pack_format of any Minecraft version, for both resource and data packs.","archived":false,"fork":false,"pushed_at":"2025-08-18T10:23:01.000Z","size":131,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T10:34:46.802Z","etag":null,"topics":["data-pack","data-packs","datapack","datapacks","minecraft","minecraft-resourcepack","minecraft-tool","minecraft-tools","nixinova","no-dependencies","resource-pack","resource-packs","resourcepack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nixinova.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-23T02:35:11.000Z","updated_at":"2025-08-18T10:21:45.000Z","dependencies_parsed_at":"2025-09-07T10:33:52.610Z","dependency_job_id":"64c24a7c-eb85-46cd-9a81-61941d0ba46f","html_url":"https://github.com/Nixinova/pack-format","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":0.3421052631578947,"last_synced_commit":"80012da0ff276517aef13fc62be6f11ec8e7d4b3"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/Nixinova/pack-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nixinova%2Fpack-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nixinova%2Fpack-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nixinova%2Fpack-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nixinova%2Fpack-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nixinova","download_url":"https://codeload.github.com/Nixinova/pack-format/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nixinova%2Fpack-format/sbom","scorecard":{"id":102019,"data":{"date":"2025-08-11","repo":{"name":"github.com/Nixinova/pack-format","commit":"2e3790ba7773c28fdaffea1a78ee0d17d6ab5c30"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/30 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":"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":"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":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/Nixinova/pack-format/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/Nixinova/pack-format/test.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned 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":"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.md:0","Info: FSF or OSI recognized license: ISC License: license.md: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 'main'"],"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 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-15T10:20:29.942Z","repository_id":57317626,"created_at":"2025-08-15T10:20:29.942Z","updated_at":"2025-08-15T10:20:29.942Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278956366,"owners_count":26075227,"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-08T02:00:06.501Z","response_time":56,"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":["data-pack","data-packs","datapack","datapacks","minecraft","minecraft-resourcepack","minecraft-tool","minecraft-tools","nixinova","no-dependencies","resource-pack","resource-packs","resourcepack"],"created_at":"2024-10-10T23:19:10.992Z","updated_at":"2025-10-08T14:12:42.665Z","avatar_url":"https://github.com/Nixinova.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest version](https://img.shields.io/github/v/release/Nixinova/pack-format?label=latest\u0026style=flat-square)](https://github.com/Nixinova/pack-format/releases)\n[![npm downloads](https://img.shields.io/npm/dt/pack-format?style=flat-square)](https://www.npmjs.com/package/pack-format)\n[![Last updated](https://img.shields.io/github/release-date-pre/Nixinova/pack-format?label=updated\u0026style=flat-square)](https://github.com/Nixinova/pack-format/releases)\n\n# pack-format\n\npack-format is a tool for retrieving the `pack_format` of any Minecraft version, including snapshots.\n\n**Updated till: 1.21.8/25w33a**\n\n## About\n\n`pack_format` is a version number used by Minecraft in both resource packs and data packs for labeling compatible versions.\nIt was added in Minecraft version 1.6, and as such using this tool on any version prior to that will just return `undefined`.\n\n## Install\n\npack-format is available on [npm](https://www.npmjs.com/package/pack-format).\nYou must have Node.js installed to be able to use this.\n\nTo install pack-format, open the command line and type `npm install pack-format` to use for a Node.js project, or `npm install -g pack-format` to use from the command line.\n\n## Usage\n\n### Node\n\nRetrieve the `pack_format` of a given Minecraft version, optionally specifying whether the resource (default) or data pack version should be returned.\n\n```js\nconst packFormat = require('pack-format')\npackFormat('1.14.4') // 4\npackFormat('1.16.2-pre1', 'resource') // 5\npackFormat('20w45a', 'data') // 6\npackFormat.LATEST.data // 83.1\npackFormat.LATEST.version // 1.21.8\n```\n\nRetrieve a list of versions corresponding to a specific `pack_format`, again optionally specifying resource/data pack version.\n\n```js\nconst {getVersions} = require('pack-format')\ngetVersions(3) // { releases: { min: '1.11.x', max: '1.12.x' }, snapshots: { min: '16w32a', max: '17w47a' } }\ngetVersions(6, 'data') // { releases: { min: '1.15.x', max: '1.16.1' }, snapshots: { min: '20w06a', max: '20w44a' } }\ngetVersions(64, 'resource') // { releases: { min: '1.21.7', max: '1.21.8' }, snapshots: { min: null, max: null } }\n```\n\n### Command line\n\nRetrieve both the resource and data `pack_format` of a given Minecraft version:\n```console\npack-format [--data|--resource] \u003cversion\u003e\n```\n\nRetrieve a list of corresponding Minecraft versions:\n```console\npack-format --list [--data|--resource] \u003cpack_format\u003e\n```\n\nExamples:\n```console\n\u003e pack-format 1.14.4\nResource pack format of 1.14.4 is 4\nData pack format of 1.14.4 is 4\n\n\u003e pack-format --resource 1.16.2-pre1\nResource pack format of 1.16.2-pre1 is 5\n\n\u003e pack-format --data 20w45a\nData pack format of 20w45a is 6\n\n\u003e pack-format --list --resource 3\nA resource pack format of 3 is used for 1.11–1.12.2 (16w32a–17w47a)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixinova%2Fpack-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixinova%2Fpack-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixinova%2Fpack-format/lists"}