ex_yarn v0.4.1 ExYarn.Lockfile View Source
A small module that wraps ExYarn.Parser's output in an easy to use struct
This module allows parsing a Yarn lockfile into a struct that exposes the file's contents in an easy to use format.
Link to this section Summary
Functions
Build a Lockfile from ExYarn.Parser's output.
Link to this section Types
Specs
t() :: %ExYarn.Lockfile{
comments: [String.t()],
dependencies: [ExYarn.Dependency.t()],
version: integer() | nil
}
The representation of a lockfile
Link to this section Functions
Specs
from_parse_result({any(), maybe_improper_list()}) ::
{:error, binary()} | {:ok, t()}
Build a Lockfile from ExYarn.Parser's output.