A command line tool to generate Dart package manifest from pubspec.yaml.
Run the following code in your project root directory,
and it will generate lib/manifest.dart
according to your pubspec.yaml
.
dart run manifest -o lib/manifest.dart
The output file will only contain a const
with the manifest data,
and you can call it like this:
import 'package:manifest/manifest.dart';
import 'manifest.dart';
void main() {
print('${manifest.name}: ${manifest.version}');
}