pubspec_parse 0.1.2+3

  • Installing
  • Versions
  • 85

Build Status

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

Read more about the pubspec format.

Features and bugs

Please file feature requests and bugs at the issue tracker.


  • Support the latest version of package:json_annotation.


  • Support package:json_annotation v1.


  • Support the Dart 2 stable release.


  • Allow superfluous version keys with git and path dependencies.
  • Improve errors when unsupported keys are provided in dependencies.
  • Provide better errors with invalid sdk dependency values.
  • Support "scp-like syntax" for Git SSH URIs in the form [user@]host.xz:path/to/repo.git/.


  • Fixed name collision with error type in latest package:json_annotation.
  • Improved parsing of hosted dependencies and environment constraints.


  • Initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  pubspec_parse: ^0.1.2+3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:pubspec_parse/pubspec_parse.dart';
Version Uploaded Documentation Archive
0.1.2+3 Oct 23, 2018 Go to the documentation of pubspec_parse 0.1.2+3 Download pubspec_parse 0.1.2+3 archive
0.1.2+2 Jul 24, 2018 Go to the documentation of pubspec_parse 0.1.2+2 Download pubspec_parse 0.1.2+2 archive
0.1.2+1 Jul 23, 2018 Go to the documentation of pubspec_parse 0.1.2+1 Download pubspec_parse 0.1.2+1 archive
0.1.2 Jun 20, 2018 Go to the documentation of pubspec_parse 0.1.2 Download pubspec_parse 0.1.2 archive
0.1.1 Jun 8, 2018 Go to the documentation of pubspec_parse 0.1.1 Download pubspec_parse 0.1.1 archive
0.1.0 Jun 4, 2018 Go to the documentation of pubspec_parse 0.1.0 Download pubspec_parse 0.1.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:pubspec_parse/pubspec_parse.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use pubspec_parse.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
json_annotation >=1.0.0 <3.0.0 2.0.0
pub_semver ^1.3.2 1.4.2
yaml ^2.1.12 2.1.15
Transitive dependencies
charcode 1.1.2
collection 1.14.11
meta 1.1.6
source_span 1.4.1
string_scanner 1.0.4
Dev dependencies
build_runner ^1.0.0
build_verify ^1.0.0
json_serializable ^1.2.1
path ^1.5.1 1.6.2
stack_trace ^1.9.2
test ^1.0.0
test_descriptor ^1.0.3
test_process ^1.0.2