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

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
140
points
20.2k
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

Documentation

API reference

License

unknown (license)

Dependencies

args, checked_yaml, json_annotation, pub_semver

More

Packages that depend on pubspec_lock_parse