Generate a complete package manifest from package.json.
Aggregates data from the package.json file into a structured manifest used by publishing, auditing, and analysis tools.
Summary
Functions
Get all dependency names across all types.
Count total dependency count across all types.
Build a manifest from a package.json file.
Build a manifest from a JSON string.
Check if the manifest has any scripts defined.
Types
@type t() :: %{ name: String.t() | nil, version: String.t() | nil, license: String.t() | nil, module_type: :esm | :cjs, dependencies: %{required(String.t()) => String.t()}, dev_dependencies: %{required(String.t()) => String.t()}, optional_dependencies: %{required(String.t()) => String.t()}, scripts: %{required(String.t()) => String.t()}, engines: %{required(String.t()) => String.t()}, exports: map() | nil, files: [String.t()] | nil }
Functions
Get all dependency names across all types.
@spec dep_count(t()) :: non_neg_integer()
Count total dependency count across all types.
Build a manifest from a package.json file.
Build a manifest from a JSON string.
Check if the manifest has any scripts defined.