Viewing version 2.0.1. Open the latest package page.

pubspec_lock_parse

2.0.1

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

Download archive

Readme

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

Changelog

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_parse:2.0.1'
pubspec.yaml
name: pubspec_lock_parse
version: 2.0.1
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.0
  json_annotation: ^4.3.0
  pub_semver: ^2.1.0
  checked_yaml: ^2.0.1

dev_dependencies:
  build_runner: ^1.10.1
  json_serializable: ^6.0.1
  test: ^1.15.7
  stack_trace: ^1.9.2

Version history

VersionPublishedArchiveSHA-256
1.0.0Cached · Upstream SHA-256 matchedDownloadbb15f281…a75691
2.0.0Cached · Upstream SHA-256 matchedDownload09548af0…472df0
2.0.1Cached · Upstream SHA-256 matchedDownload1c817380…7f29c8
2.1.0Cached · Upstream SHA-256 matchedDownloadcc648292…accb4b
2.2.0Cached · Upstream SHA-256 matchedDownload020cb470…017764

Dependencies

args "^2.3.0"

checked_yaml "^2.0.1"

json_annotation "^4.3.0"

pub_semver "^2.1.0"