pubspec_lock_reader 1.0.2
pubspec_lock_reader: ^1.0.2 copied to clipboard

Reads pubspec.lock file from main directory and transfers the content into readable object.

example/lib/main.dart

import 'package:pubspec_lock_reader/pubspec_lock_reader.dart';

void main() {
  /// Remember to go into example dir in your console.
  /// Run `dart lib/main.dart`
  final pubspecLock = getPubspecLock();
  final pubspecLockReader = pubspecLock.packages
      .firstWhere((element) => element.package == 'pubspec_lock_reader');
  print('show pubspec_lock_reader version');
  print(pubspecLockReader.version);
}
0
likes
130
pub points
14%
popularity

Reads pubspec.lock file from main directory and transfers the content into readable object.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

universal_io, yaml

More

Packages that depend on pubspec_lock_reader