An open API service indexing awesome lists of open source software.

https://github.com/treeinfra/manifest

A command line tool to generate Dart package manifest from pubspec.yaml.
https://github.com/treeinfra/manifest

cli dart flutter gen manifest

Last synced: 8 months ago
JSON representation

A command line tool to generate Dart package manifest from pubspec.yaml.

Awesome Lists containing this project

README

          

# Manifest

A command line tool to generate Dart package manifest from pubspec.yaml.

## How to use

Run the following code in your project root directory,
and it will generate `lib/manifest.dart` according to your `pubspec.yaml`.

```sh
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:

```dart
import 'package:manifest/manifest.dart';
import 'manifest.dart';

void main() {
print('${manifest.name}: ${manifest.version}');
}
```