NPM.People (NPM v0.6.0)

Copy Markdown View Source

Extracts and analyzes author/contributor information from packages.

Summary

Functions

Returns all people (author + contributors).

Extracts the author from package.json data.

Extracts contributors list.

Checks if author info is present.

Counts unique contributors across multiple packages.

Functions

all(data)

@spec all(map()) :: [map()]

Returns all people (author + contributors).

author(arg1)

@spec author(map()) :: map() | nil

Extracts the author from package.json data.

contributors(arg1)

@spec contributors(map()) :: [map()]

Extracts contributors list.

has_author?(data)

@spec has_author?(map()) :: boolean()

Checks if author info is present.

unique_authors(packages)

@spec unique_authors([map()]) :: [String.t()]

Counts unique contributors across multiple packages.