Skip to main content

pubspec_licenses 1.0.1 copy "pubspec_licenses: ^1.0.1" to clipboard
pubspec_licenses: ^1.0.1 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_licenses

Use 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_licenses

With Flutter:

 $ flutter pub add pubspec_licenses

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  pubspec_licenses: ^1.0.1

Alternatively, 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';
1
likes
160
points
298
downloads

Documentation

API reference

Publisher

verified publisherkeyscope.dev

Weekly Downloads

Zero-dependency Dart library and CLI to extract OSS licenses and SPDX identifiers from pubspec.lock. Drop-in replacement for dart_pubspec_licenses.

Repository (GitHub)
View/report issues

Topics

#license #pubspec #oss #spdx #dependencies

License

Apache-2.0 (license)

More

Packages that depend on pubspec_licenses