package_config 3.0.0 copy "package_config: ^3.0.0" to clipboard
package_config: ^3.0.0 copied to clipboard

Support for reading and writing Dart Package Configuration files.

Build Status pub package package publisher

Support for working with Package Configuration files as described in the Package Configuration v2 design document.

A Dart package configuration file is used to resolve Dart package names (e.g. foobar) to Dart files containing the source code for that package (e.g. file:///Users/myuser/.pub-cache/hosted/pub.dartlang.org/foobar-1.1.0). The standard package configuration file is .dart_tool/package_config.json, and is written by the Dart tool when the command dart pub get is run.

The primary libraries of this package are

  • package_config.dart: Defines the PackageConfig class and other types needed to use package configurations, and provides functions to find, read and write package configuration files.

  • package_config_types.dart: Just the PackageConfig class and other types needed to use package configurations. This library does not depend on dart:io.

The package no longer contains backwards compatible functionality to work with .packages files.

14
likes
150
points
6.7M
downloads

Documentation

API reference

Publisher

verified publishertools.dart.dev

Weekly Downloads

Support for reading and writing Dart Package Configuration files.

Repository (GitHub)
View/report issues
Contributing

License

BSD-3-Clause (license)

Dependencies

meta

More

Packages that depend on package_config