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.