Skip to main content

Ident

Combination of a scope and name, bound with a hash suitable for comparisons.

Use parseIdent to turn ident strings (@types/node) into the ident structure ({scope: types, name: node}), makeIdent to create a new one from known parameters, or stringifyIdent to retrieve the string as you'd see it in the dependencies field.

Hierarchy

Index

Properties

identHash

identHash: IdentHash

Unique hash of a package scope and name. Used as key in various places, so that two idents can be quickly compared.

name

name: string

Name of the package (eg. node).

scope

scope: null | string

Scope of the package, without the @ prefix (eg. types).