Skip to main content

pubspec_parse 1.7.0 copy "pubspec_parse: ^1.7.0" to clipboard
pubspec_parse: ^1.7.0 copied to clipboard

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

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.

59
likes
160
points
13.7M
downloads

Documentation

API reference

Publisher

verified publishertools.dart.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues
Contributing

Topics

#dart-pub

License

BSD-3-Clause (license)

Dependencies

checked_yaml, collection, json_annotation, pub_semver, yaml

More

Packages that depend on pubspec_parse