@types/npm-user-packages
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

Installation

npm install --save @types/npm-user-packages

Summary

This package contains type definitions for npm-user-packages (https://github.com/kevva/npm-user-packages#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-user-packages.

index.d.ts

export = npmUserPackages;

/**
 * Get packages by a npm user.
 * @param username User to fetch packages from.
 */
declare function npmUserPackages(username: string): Promise<npmUserPackages.PackageData[]>;

declare namespace npmUserPackages {
    interface PackageData {
        author: {
            email?: string | undefined;
            name: string;
            url?: string | undefined;
            username?: string | undefined;
        };
        date: string;
        description: string;
        keywords: string[];
        links: {
            bugs?: string | undefined;
            homepage?: string | undefined;
            npm: string;
            repository?: string | undefined;
        };
        maintainers: Array<{
            email: string;
            username: string;
        }>;
        name: string;
        publisher: {
            email: string;
            username: string;
        };
        scope: string;
        version: string;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/npm-user-packages

Weekly Downloads

4

Version

3.0.3

License

MIT

Unpacked Size

4.57 kB

Total Files

5

Last publish

Collaborators

  • types