pubspec_extract 1.0.1 copy "pubspec_extract: ^1.0.1" to clipboard
pubspec_extract: ^1.0.1 copied to clipboard

outdated

Extracts Dart pubspec.yaml file and generate pubspec.dart at build time

Pubspec Extract #

Extracts Dart pubspec.yaml file and generate pubspec.dart at build time.

Buy Me A Coffee

Usage #

In your pubspec.yaml, add the following:

builders:
    pubspec_extract:

Then in your application, you can import pubspec.dart:

import 'pubspec.dart' as pubspec; // May not exist but it's okay!

void main() {
  print(pubspec.name);
  print(pubspec.description);
  print(pubspec.version);
}
14
likes
0
pub points
64%
popularity

Publisher

verified publishernfet.net

Extracts Dart pubspec.yaml file and generate pubspec.dart at build time

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

build, dart_style, yaml

More

Packages that depend on pubspec_extract