pubspec_parse 0.1.2+2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 87

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.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:


dependencies:
  pubspec_parse: ^0.1.2+2

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+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
Popularity:
Describes how popular the package is relative to other packages. [more]
77
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
87
Learn more about scoring.

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

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.54 <3.0.0
json_annotation >=0.2.9 <2.0.0 1.2.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 ^0.9.0
json_serializable ^0.5.8
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