MetaDep

MetaDep is an library application that can also be used as an escript or mix task. MetaDep is a convenience app that allows you to list meta information about all project dependencies. It supports a number of cmdline arguments

Full documentation can be found at https://hexdocs.pm/meta_dep/

Installation

The package can be installed by adding meta_dep to your list of dependencies in mix.exs:

def deps do
[
{:meta_dep, "~> 0.1.0", only: :dev, runtime: false}
]
end

Mix Task

If meta_dep has been added to your project you can run its mix task from the cmdline as follows:

$ mix meta_dep

Mix Task Usage

$ mix meta_dep -p ./deps -ld bunt
{"bunt", %{"Licenses" => "MIT, Apache2"}}

See MetaDep for complete documentation and usage examples.

Escript

To build and install as an escript do the following:

$ mix escript.build

This should build the escript meta_dep in your cwd. You can install the escript locally be doing the following:

$ mix escript.install

Escript Usage

$ meta_dep -p ./deps -ld bunt
{"bunt", %{"Licenses" => "MIT, Apache2"}}

More Mix Task Usage Examples

$ mix meta_dep -p ./deps -ld bunt
{"bunt", %{"Licenses" => "MIT, Apache2"}}
$ mix meta_dep -p ./deps -vd bunt
{"bunt",
%{
"Licenses" => "MIT, Apache2",
"Maintainers" => "René Föhring",
"Repo" => "https://github.com/rrrene/bunt"
}}
$ mix meta_dep -l
{"bunt", %{"Licenses" => "MIT, Apache2"}}
{"chumak", %{"Licenses" => "MPLv2"}}
{"cowboy", %{"Licenses" => "ISC"}}
{"cowlib", %{"Licenses" => "ISC"}}
{"jason", %{"Licenses" => "Apache 20"}}
{"licensir", %{"Licenses" => "MIT"}}
{"mime", %{"Licenses" => "Apache 2"}}
{"plug", %{"Licenses" => "Apache 2"}}
{"plug_cowboy", %{"Licenses" => "Apache 2"}}
{"plug_crypto", %{"Licenses" => "Apache 2"}}
{"ranch", %{"Licenses" => "ISC"}}
{"sweet_xml", %{"Licenses" => "MIT"}}