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

2.0.4 • Public • Published

Installation

npm install --save @types/npm-list-author-packages

Summary

This package contains type definitions for npm-list-author-packages (https://github.com/kgryte/npm-list-author-packages#readme).

Details

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

index.d.ts

declare namespace list {
    interface Options {
        /** registry port. Default: 443 (HTTPS) or 80 (HTTP). */
        port?: 443 | 80 | undefined;
        /** registry protocol. Default: 'https'. */
        protocol?: "http" | "https" | undefined;
        /** registry. Default: 'registry.npmjs.org'. */
        registry?: string | undefined;
        /** author username (required). */
        username: string;
    }

    type Callback = (error: Error | null, data: string[]) => void;

    function factory(opts: Options, callback: Callback): () => void;
}

declare function list(opts: list.Options, callback: list.Callback): void;

export = list;

Additional Details

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

Credits

These definitions were written by Florian Keller.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/npm-list-author-packages

Weekly Downloads

2

Version

2.0.4

License

MIT

Unpacked Size

3.99 kB

Total Files

5

Last publish

Collaborators

  • types