pubspec_lock_parse
2.2.0Simple package for parsing pubspec.lock files with a type-safe API and rich error reporting.
Readme
Supports parsing pubspec.lock files with robust error reporting
Designed around the pubspec_parse package, and mirrors its implementation and interface
Usage
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
Changelog
2.2.0
- added
source: sdkpackage types
2.1.0
- added
toJsonmethods 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
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add pubspec_lock_parsepubspec.yaml
name: pubspec_lock_parse
version: 2.2.0
description: Simple package for parsing pubspec.lock files with a type-safe API and rich error reporting.
repository: https://github.com/matthewnitschke/pubspec_lock_parse
environment:
sdk: '>=2.14.0 <3.0.0'
dependencies:
args: ^2.3.1
json_annotation: ^4.6.0
pub_semver: ^2.1.1
checked_yaml: ^2.0.1
dev_dependencies:
build_runner: ^2.1.11
json_serializable: ^6.3.1
test: ^1.21.4
stack_trace: ^1.10.0
yaml: ^3.1.1
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | bb15f281…a75691 |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | 09548af0…472df0 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | 1c817380…7f29c8 |
| 2.1.0 | Cached · Upstream SHA-256 matched | Download | cc648292…accb4b |
| 2.2.0 | Cached · Upstream SHA-256 matched | Download | 020cb470…017764 |
Dependencies
args "^2.3.1"
checked_yaml "^2.0.1"
json_annotation "^4.6.0"
pub_semver "^2.1.1"