npm Registry API Client
    Preparing search index...

    Interface NpmSearchObject

    A single entry in the search results array.

    interface NpmSearchObject {
        dependents?: string;
        downloads?: { monthly: number; weekly: number };
        flags?: { insecure?: number };
        package: NpmSearchPackage;
        score: NpmScore;
        searchScore: number;
        updated?: string;
    }
    Index

    Properties

    dependents?: string

    Number of packages that depend on this one, as a numeric string (e.g. '216179'). Not returned by every registry.

    downloads?: { monthly: number; weekly: number }

    Download counts for the package. Not returned by every registry.

    Type Declaration

    • monthly: number

      Downloads over the last 30 days

    • weekly: number

      Downloads over the last 7 days

    flags?: { insecure?: number }

    Present when the package is flagged as insecure

    score: NpmScore
    searchScore: number

    Search relevance of the package for the query

    updated?: string

    When the search index entry was last updated (ISO 8601). Not returned by every registry.