5.5.1 Module anvl_hex_pm

A client for hex.pm.

5.5.1.1 Types

provides()

-type provides() :: undefined |
                    [anvl_erlc:application()].

lock()

-type lock() :: binary().

Hex lock is a binary consisting of hex-encoded SHA256 hash of the tarball, followed by dash and SemVer version.

For example: e87a9dd6e7fe9c5804887850d4cdbcd8-2.10.0 (hash was contracted for brevity).

version()

-type version() :: string() | latest.

package()

-type package() :: atom().

5.5.1.2 Functions

unpacked(A, B, C, D)

-spec unpacked(anvl_project:t(),
               anvl_locate:kind(), package(),
               version()) -> anvl_condition:t().

Condition: tarball locked, downloaded and unpacked to a local project directory.

lock(Package, Version)

-spec lock(package(), version()) -> lock().

Query hex.pm for a lock matching a version (range) of a package.

JavaScript license information