{"id":25858522,"url":"https://github.com/web-pacotes/flutter-version-finder","last_synced_at":"2026-06-08T08:33:01.900Z","repository":{"id":172060943,"uuid":"646395152","full_name":"web-pacotes/flutter-version-finder","owner":"web-pacotes","description":"Micro library that finds the appropriate Flutter version to use on a Flutter project","archived":false,"fork":false,"pushed_at":"2023-11-01T11:28:56.000Z","size":359,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-07T13:35:18.280Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://web-pacotes.github.io/flutter-version-finder/","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/web-pacotes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-28T09:02:43.000Z","updated_at":"2023-11-01T17:28:35.000Z","dependencies_parsed_at":"2024-10-12T18:40:35.187Z","dependency_job_id":null,"html_url":"https://github.com/web-pacotes/flutter-version-finder","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":"0.11111111111111116","last_synced_commit":"6d899354525c643dfb78fd12b8eb5a6d5490fdb2"},"previous_names":["web-pacotes/flutter-version-finder"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-pacotes%2Fflutter-version-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-pacotes%2Fflutter-version-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-pacotes%2Fflutter-version-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-pacotes%2Fflutter-version-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-pacotes","download_url":"https://codeload.github.com/web-pacotes/flutter-version-finder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239433901,"owners_count":19637806,"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","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":["hacktoberfest"],"created_at":"2025-03-01T20:20:20.908Z","updated_at":"2026-06-08T08:33:01.892Z","avatar_url":"https://github.com/web-pacotes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter-version-finder\n\nMicro library that finds the appropriate Flutter version to use on a Flutter project\n\n![npm version](https://badgen.net/npm/v/@web-pacotes/flutter-version-finder) ![npm total downloads](https://badgen.net/npm/dt/@web-pacotes/flutter-version-finder) ![bundlephobia bundle size](https://badgen.net/bundlephobia/min/@web-pacotes/flutter-version-finder)\n\n---\n\n## How to use\n\nTo use this package, start by reading the content of a `pubspec.yaml` or `pubspec.lock` file. Then, import the finder function and feed it the file content.\n\n```typescript\nimport { default as finder } from 'flutter-version-finder';\nimport { readFileSync } from 'fs';\n\n// Read the content of a pubspec.yaml or pubspec.lock file\nconst path = 'example/example.lock';\n\nconst data = readFileSync(path).toString();\n\n// Find the matching Flutter version\nconst result = finder(data);\n\n// Hoooraaaay! It should print the Flutter version that is compatible with the lock file\nconsole.log(result); // { flutter: '3.10.0', dart: '3.0.0' }\n```\n\nAdditionally, you can finder Flutter versions directly from the CLI:\n\n```bash\nnpx flutter-version-finder --path=example/example.lock\n```\n\n## Features\n\n- Find supported Flutter version from `pubspec.yaml`\n- Find supported Flutter version from `pubspec.lock`\n\n---\n\n## Scripts\n\n- `npm run build` to transpile and bundle files in `.cjs`, `.js`, `.d.ts` and respective source-maps\n- `npm run start` to run the project with `swc` compilation\n\n- `npm run test` to run the unit tests\n- `npm run lint` to analyze and lint the project\n- `npm run format` to format the project based on lint feedback\n- `npm run docs` to generate docs site\n- `npm run docs:publish` to generate docs site and publish it to GitHub Pages\n\n- `npm run release` to create the temporary changesets file\n- `npm run publish` to publish the package to NPM\n\n## Hooks\n\nThis repository is configured with client-side Git hooks that automatically format + lint the codebase before each push. You can install it by running the following command:\n\n```bash\n./hooks/INSTALL\n```\n\n## Automatically Publishing to NPM\n\nTo automatically publish the package to NPM, you will need to grab a token of the publisher account for CI usage, and set it as a repository secret in GitHub under the `NPM_TOKEN` identifier.\n\n---\n\n### Bugs and Contributions\n\nFound any bug (including typos) in the package? Do you have any suggestion\nor feature to include for future releases? Please create an issue via\nGitHub in order to track each contribution. Also, pull requests are very\nwelcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-pacotes%2Fflutter-version-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-pacotes%2Fflutter-version-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-pacotes%2Fflutter-version-finder/lists"}