# pubspec_lock_parse 2.0.1

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.0.1'
```
Published: 2021-12-13T19:03:52.390031Z
Expected archive SHA-256: 1c8173808d9a61ebec3bfb511930c3caf0e24a8af407905b002a9e94e47f29c8

Available in cache; verification: upstream_checksum
## Direct dependencies
- args: ^2.3.0
- checked_yaml: ^2.0.1
- json_annotation: ^4.3.0
- pub_semver: ^2.1.0

## 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.0.1
- Better documentation

## 2.0.0

- Null safety
- Min dart sdk to 2.14.0

## 1.0.0

- Initial release






 
