# pubspec_lock_parse 2.2.0

Simple package for parsing pubspec.lock files with a type-safe API and rich error reporting.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'pubspec_lock_parse:2.2.0'
```
Published: 2022-10-12T02:47:21.153769Z
Expected archive SHA-256: 020cb470287124c936c30ebfc2f927b287f275b7bf7fc2ab11577e592c017764

Available in cache; verification: upstream_checksum
## Direct dependencies
- args: ^2.3.1
- checked_yaml: ^2.0.1
- json_annotation: ^4.6.0
- pub_semver: ^2.1.1

## Package README (untrusted upstream documentation)
[![Dart](https://github.com/matthewnitschke/pubspec_lock_parse/actions/workflows/dart.yml/badge.svg)](https://github.com/matthewnitschke/pubspec_lock_parse/actions/workflows/dart.yml)
[![pub package](https://img.shields.io/pub/v/pubspec_lock_parse.svg)](https://pub.dev/packages/pubspec_lock_parse)

Supports parsing `pubspec.lock` files with robust error reporting

Designed around the [`pubspec_parse`](https://github.com/dart-lang/pubspec_parse) package, and mirrors its implementation and interface

## Usage

```dart
import 'dart:io';
import 'package:pubspec_lock_parse/pubspec_lock_parse.dart';

void main() {
    final lockStr = File('path/to/pubspec.lock').readAsStringSync();
    final lockfile = PubspecLock.parse(lockStr);
}
```

You can find more about the `PubspecLock` object in the documentation [here](https://pub.dev/documentation/pubspec_lock_parse/latest/)
## Changelog
## 2.2.0
- added `source: sdk` package types

## 2.1.0
- added `toJson` methods to all exported objects

## 2.0.1
- Better documentation

## 2.0.0

- Null safety
- Min dart sdk to 2.14.0

## 1.0.0

- Initial release






 
