pen_api 0.2.3

  • Installing
  • Versions
  • 55


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


  • improvements
  • maintenance
  • fixed bug in tests


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

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


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
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
async 2.0.8
charcode 1.1.2
collection 1.14.11
http 0.11.3+17 0.12.0
http_parser 3.1.3
json_annotation 2.0.0
logging 0.11.3+2
meta 1.1.6
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
test ^1.3.0