pen_api 0.2.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 59

pen_api

A programmatic API for pen. (a pubspec authoring tool)

This is intended for programatically handling the pubspec.yaml files of your packages with the development aid (and/or automatization) in mind.

Just go to the docs and begin!

Forked from den_api

0.1.2

  • README.md improvements
  • CHANGELOG.md maintenance
  • fixed bug in tests

0.1.1

  • fork from den_api original package

Use this package as a library

1. Depend on it

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


dependencies:
  pen_api: ^0.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:pen_api/pen_api.dart';
  
Version Uploaded Documentation Archive
0.2.3 Sep 3, 2018 Go to the documentation of pen_api 0.2.3 Download pen_api 0.2.3 archive
0.2.2 Sep 3, 2018 Go to the documentation of pen_api 0.2.2 Download pen_api 0.2.2 archive
0.2.1 Sep 3, 2018 Go to the documentation of pen_api 0.2.1 Download pen_api 0.2.1 archive
0.1.2 Dec 9, 2017 Go to the documentation of pen_api 0.1.2 Download pen_api 0.1.2 archive
0.1.1 Dec 2, 2017 Go to the documentation of pen_api 0.1.1 Download pen_api 0.1.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
37
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
59
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, other

Primary library: package:pen_api/pen_api.dart with components: io.

Health suggestions

Format lib/pen_api.dart.

Run dartfmt to format lib/pen_api.dart.

Format lib/src/bump.dart.

Run dartfmt to format lib/src/bump.dart.

Format lib/src/github_repo_description.dart.

Run dartfmt to format lib/src/github_repo_description.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/package_dep.dart (Run dartfmt to format lib/src/package_dep.dart.)
  • lib/src/release_type.dart (Run dartfmt to format lib/src/release_type.dart.)
  • lib/src/yaml_edit.dart (Run dartfmt to format lib/src/yaml_edit.dart.)

Maintenance issues and suggestions

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: github.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

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 pen_api.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.60.2 <3.0.0
contrast2 ^0.2.0 0.2.0+1
convert ^2.0.1 2.0.2
github 4.0.0-dev
path >=1.3.0 <2.0.0 1.6.2
pub_package_data2 ^0.2.0 0.2.0
pub_semver >=1.1.0 <2.0.0 1.4.2
source_span >=1.0.3 <2.0.0 1.4.1
yaml >=2.0.1+1 <3.0.0 2.1.15
Transitive dependencies
args 1.5.0
async 2.0.8
charcode 1.1.2
collection 1.14.11
csslib 0.14.6
html 0.13.3+3
http 0.11.3+17 0.12.0
http_parser 3.1.3
json_annotation 1.2.0
logging 0.11.3+2
meta 1.1.6
petitparser 2.0.2
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
xml 3.2.3
Dev dependencies
test ^1.3.0