Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Dart's package manager is called pub?

Tags:

dart

Just that: Why is the package manager called pub?

like image 953
Nico Rodsevich Avatar asked Mar 08 '17 22:03

Nico Rodsevich


People also ask

What is pub package manager?

The pub package manager has a command-line interface that works with either the flutter tool or the dart tool. With either tool, add the pub command followed by a subcommand such as get : $ dart pub get # Gets dependencies for a non-Flutter package $ flutter pub get # Gets dependencies for a Flutter package.

What is pub package?

Pub is Dart's package manager. It's where you pull in open-source libraries, as well as your own. Most packages you'll ever use are at pub.dartlang.org/. Here you'll find packages published by the Flutter and Dart teams, as well as Dart community members. Dart has a concise community.

What is pub in Dart?

Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter, AngularDart, and general Dart programs. Some basic command: Use pub get to get dependencies. Use pub upgrade to upgrade a dependency. Use pub publish to make your library available for others.

What is pub get?

Get is one of the commands of the pub tool. This command gets all the dependencies listed in the pubspec. yaml file in the current working directory, as well as their transitive dependencies.


2 Answers

Because you play darts in a pub. :)

like image 143
Seth Ladd Avatar answered Sep 24 '22 14:09

Seth Ladd


It also lets you have the "lish" command :-)

like image 32
Alan Knight Avatar answered Sep 25 '22 14:09

Alan Knight