<commit_before># version
[![version 1.3.0](https://img.shields.io/badge/pub-1.3.0-brightgreen.svg)](https://pub.dartlang.org/packages/version)
![Dart CI](https://github.com/dartninja/version/workflows/Dart%20CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/dartninja/version/badge.svg?branch=master)](https://coveralls.io/github/dartninja/version?branch=master)

A dart library providing a Version object for comparing and incrementing version numbers in compliance with the Semantic Versioning spec at http://semver.org/

This is in contrast to [pub_semver][pub_semver], which is close to the spec but diverts in a few specific ways.

[pub_semver]: https://pub.dartlang.org/packages/pub_semver

# Installation
In your `pubspec.yaml`:

```yaml
dependencies:
  version: ^1.0.0
```

## Usage

A simple usage example:

    import 'package:version/version.dart';
    
    void main() {
      Version currentVersion = new Version(1, 0, 3);
      Version latestVersion = Version.parse("2.1.0");
    
      if (latestVersion > currentVersion) {
        print("Update is available");
      }
    <commit_msg>Added link to dart CI badge<commit_after># version
[![version 1.3.0](https://img.shields.io/badge/pub-1.3.0-brightgreen.svg)](https://pub.dartlang.org/packages/version)
[![Dart CI](https://github.com/dartninja/version/workflows/Dart%20CI/badge.svg)](https://github.com/dartninja/version/actions/workflows/dart.yml)
[![Coverage Status](https://coveralls.io/repos/github/dartninja/version/badge.svg?branch=master)](https://coveralls.io/github/dartninja/version?branch=master)

A dart library providing a Version object for comparing and incrementing version numbers in compliance with the Semantic Versioning spec at http://semver.org/

This is in contrast to [pub_semver][pub_semver], which is close to the spec but diverts in a few specific ways.

[pub_semver]: https://pub.dartlang.org/packages/pub_semver

# Installation
In your `pubspec.yaml`:

```yaml
dependencies:
  version: ^1.0.0
```

## Usage

A simple usage example:

    import 'package:version/version.dart';
    
    void main() {
      Version currentVersion = new Version(1, 0, 3);
      Version latestVersion = Version.parse("2.1.0");
    
      if (latestVersion > currentVersion) {
        print("Update is available");
      }
    
{'fraction_non_alphanumeric': 0.13885295385942217, 'fraction_numerical': 0.014661492022423459, 'mean_word_length': 4.144124168514413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 13, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4949702', 'n_tokens_mistral': 797, 'n_tokens_neox': 748, 'n_words': 171}