FLUTTER ECOSYSTEM

pubspec_parse

Simple package for parsing pubspec.yaml files with a type-safe API and rich error reporting.

Latest version
1.5.0
30-day downloads
5.8M
Likes
58
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A type-safe Dart package for parsing pubspec.yaml files, offering clear and detailed error reporting. It enables developers to programmatically read and validate Flutter and Dart project configurations with ease. The API is designed for reliability and developer experience, making it ideal for tools that need to analyze or modify pubspec files. Built by the Dart team, it ensures compatibility across all major platforms.

Use cases
  • Parsing pubspec.yaml in build scripts
  • Validating project dependencies programmatically
  • Generating project metadata
  • Automating package configuration tasks
  • Integrating with CLI tools
Key features
  • Type-safe parsing API
  • Comprehensive error messages
  • Support for all Dart/Flutter platforms
  • First-party Dart tooling
  • Robust YAML parsing with validation
Suitable for
  • Build system developers
  • CLI tool authors
  • Package maintainers
  • CI/CD pipeline integrators
  • Dart language tooling projects
Considerations
  • Requires Dart 2.17 or higher
  • Not intended for runtime use in apps
  • Best suited for development-time tools
  • Limited to pubspec.yaml format
  • No support for dynamic pubspec modifications
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add pubspec_parse

Categories

Source repository

Related projects