Skip to content
onepub-devPublic
forked from j4qfrost/pubspec

About

A library for manipulating [pubspec](https://www.dartlang.org/tools/pub/pubspec.html) files

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

pubspec

A library for manipulating pubspec files.

Usage

A simple usage example:

import 'package:pubspec2/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.

About

A library for manipulating [pubspec](https://www.dartlang.org/tools/pub/pubspec.html) files

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages