tree: 50191f43a0e7ce4be888c0a71e61e29a0b0ff882
  1. example/
  2. lib/
  3. test/
  4. .gitignore
  5. analysis_options.yaml
  6. build.yaml
  7. CHANGELOG.md
  8. dart_test.yaml
  9. LICENSE
  10. pubspec.yaml
  11. README.md
pkgs/pubspec_parse/README.md

Build Status pub package package publisher

What's this?

Supports parsing pubspec.yaml files with robust error reporting and support for most of the documented features.

Usage

Parse a pubspec.yaml string with Pubspec.parse. Hosted and path dependencies come back as HostedDependency and PathDependency.

Pubspec.parse throws a ParsedYamlException from package:checked_yaml when a field is invalid. Pass lenient: true to ignore unknown or invalid top-level keys.

A complete example, including loading from a file, is in example/example.dart.

More information

Read more about the pubspec format.