pubspec2 1.0.0 copy "pubspec2: ^1.0.0" to clipboard
pubspec2: ^1.0.0 copied to clipboard

discontinuedreplaced by: pubspec_manager
outdated

This version is a place holder until pubspec is published with nnbd support. A library for manipulating [pubspec](https://www.dartlang.org/tools/pub/pubspec.html) 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': new PathReference('../foo') });

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

Features and bugs #

Please file feature requests and bugs at the issue tracker.

2
likes
130
pub points
50%
popularity

Publisher

verified publisheronepub-web.flutter-io.cn

This version is a place holder until pubspec is published with nnbd support. A library for manipulating [pubspec](https://www.dartlang.org/tools/pub/pubspec.html) 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 pubspec2