pubspec_parse 0.1.5

  • Readme
  • Changelog
  • Installing
  • 96

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.

0.1.5 #

  • Update SDK requirement to >=2.2.0 <3.0.0.
  • Support the latest package:json_annotation.

0.1.4 #

  • Added lenient named argument to Pubspec.fromJson to ignore format and type errors.

0.1.3 #

  • Added support for flutter, issue_tracker, publish_to, and repository fields.

0.1.2+3 #

  • Support the latest version of package:json_annotation.

0.1.2+2 #

  • Support package:json_annotation v1.

0.1.2+1 #

  • Support the Dart 2 stable release.

0.1.2 #

  • 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/.

0.1.1 #

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

0.1.0 #

  • 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.5

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub 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';
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 Mar 30, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and pubspec_parse.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
checked_yaml ^1.0.0 1.0.2
json_annotation >=1.0.0 <4.0.0 3.0.1
pub_semver ^1.3.2 1.4.4
yaml ^2.1.12 2.2.0
Transitive dependencies
charcode 1.1.3
collection 1.14.12
meta 1.1.8
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
Dev dependencies
build_runner ^1.0.0
build_verify ^1.0.0
json_serializable ^3.0.0
path ^1.5.1 1.6.4
pedantic ^1.4.0
stack_trace ^1.9.2
test ^1.0.0
test_descriptor ^1.0.3
test_process ^1.0.2