pubspec_lock_parse 2.0.1 copy "pubspec_lock_parse: ^2.0.1" to clipboard
pubspec_lock_parse: ^2.0.1 copied to clipboard

outdated

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

Dart pub package

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

2
likes
0
points
14.8k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, checked_yaml, json_annotation, pub_semver

More

Packages that depend on pubspec_lock_parse