pubspec_licenses 1.1.0
pubspec_licenses: ^1.1.0 copied to clipboard
Zero-dependency Dart library and CLI to extract OSS licenses and SPDX identifiers from pubspec.lock. Drop-in replacement for dart_pubspec_licenses.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate pubspec_licensesUse it
The package has the following executables:
$ generate
$ pubspec_licenses
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add pubspec_licensesWith Flutter:
$ flutter pub add pubspec_licensesThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
pubspec_licenses: ^1.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pubspec_licenses/pubspec_licenses.dart';