bson 0.3.2

  • README.md
  • Installing
  • Versions
  • 72

bson

Build Status

Bson library for Dart programming language

Use this package as a library

1. Depend on it

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


dependencies:
  bson: ^0.3.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:bson/bson.dart';
  
Version Uploaded Documentation Archive
0.3.2 Jul 26, 2018 Go to the documentation of bson 0.3.2 Download bson 0.3.2 archive
0.3.1 May 13, 2018 Go to the documentation of bson 0.3.1 Download bson 0.3.1 archive
0.3.0 Jul 23, 2017 Go to the documentation of bson 0.3.0 Download bson 0.3.0 archive
0.2.0 Jul 25, 2015 Go to the documentation of bson 0.2.0 Download bson 0.2.0 archive
0.1.23 Sep 6, 2014 Go to the documentation of bson 0.1.23 Download bson 0.1.23 archive
0.1.22 Sep 6, 2014 Go to the documentation of bson 0.1.22 Download bson 0.1.22 archive
0.1.21 Aug 29, 2014 Go to the documentation of bson 0.1.21 Download bson 0.1.21 archive
0.1.20 Aug 15, 2014 Go to the documentation of bson 0.1.20 Download bson 0.1.20 archive
0.1.19 Aug 14, 2014 Go to the documentation of bson 0.1.19 Download bson 0.1.19 archive
0.1.18 Mar 29, 2014 Go to the documentation of bson 0.1.18 Download bson 0.1.18 archive

All 26 versions...

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

Platforms

Detected platforms: Flutter, web, other

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

Health issues and suggestions

Document public APIs (-9.88 points)

241 out of 244 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Format lib/bson.dart.

Run dartfmt to format lib/bson.dart.

Format lib/src/bson_impl.dart.

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

Format lib/src/bson_type.dart.

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

Fix additional 16 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/statics.dart (Run dartfmt to format lib/src/statics.dart.)
  • lib/src/types/array.dart (Run dartfmt to format lib/src/types/array.dart.)
  • lib/src/types/binary.dart (Run dartfmt to format lib/src/types/binary.dart.)
  • lib/src/types/boolean.dart (Run dartfmt to format lib/src/types/boolean.dart.)
  • lib/src/types/date.dart (Run dartfmt to format lib/src/types/date.dart.)
  • lib/src/types/dbpointer.dart (Run dartfmt to format lib/src/types/dbpointer.dart.)
  • lib/src/types/dbref.dart (Run dartfmt to format lib/src/types/dbref.dart.)
  • lib/src/types/double.dart (Run dartfmt to format lib/src/types/double.dart.)
  • lib/src/types/int.dart (Run dartfmt to format lib/src/types/int.dart.)
  • lib/src/types/map.dart (Run dartfmt to format lib/src/types/map.dart.)
  • lib/src/types/min_max_keys.dart (Run dartfmt to format lib/src/types/min_max_keys.dart.)
  • lib/src/types/null.dart (Run dartfmt to format lib/src/types/null.dart.)
  • lib/src/types/objectid.dart (Run dartfmt to format lib/src/types/objectid.dart.)
  • lib/src/types/regexp.dart (Run dartfmt to format lib/src/types/regexp.dart.)
  • lib/src/types/string.dart (Run dartfmt to format lib/src/types/string.dart.)
  • lib/src/types/timestamp.dart (Run dartfmt to format lib/src/types/timestamp.dart.)

Maintenance issues and suggestions

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

Use analysis_options.yaml. (-10 points)

Rename old .analysis_options file to analysis_options.yaml.

Read more about the setup of analysis-options.yaml.

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.69.2 <3.0.0
fixnum ^0.10.8 0.10.9
more ^1.9.2 1.12.1
Transitive dependencies
collection 1.14.11
Dev dependencies
test ^1.3.0