pubspec 2.3.0 copy "pubspec: ^2.3.0" to clipboard
pubspec: ^2.3.0 copied to clipboard

discontinuedreplaced by: pubspec_parse

A library for manipulating pubspec.yaml files

pubspec #

A library for manipulating pubspec files.

Usage #

A simple usage example:

import 'package:pubspec/pubspec.dart';

main() async {
  // load it
  var pubSpec = await PubSpec.load(myDirectory);

  // change the dependencies to a single path dependency on project 'foo'
  var newPubSpec = pubSpec.copy(dependencies: { 'foo': PathReference('../foo') });

  // save it
  await newPubSpec.save(myDirectory);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

17
likes
140
pub points
99%
popularity

Publisher

verified publishertheconduit.dev

A library for manipulating pubspec.yaml files

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

path, pub_semver, uri, yaml

More

Packages that depend on pubspec