# @types/npm-user-packages

> TypeScript definitions for npm-user-packages

Latest version **3.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/npm-user-packages
pnpm add @types/npm-user-packages
yarn add @types/npm-user-packages
bun add @types/npm-user-packages
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2023-11-07 |
| First published | 2019-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/npm-user-packages
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-user-packages
- npm.io page: https://npm.io/package/@types/npm-user-packages

## Recent versions

- 3.0.3 (latest) — 2023-11-07
- 3.0.1 (ts3.6) — 2021-07-08
- 3.0.0 (ts2.0) — 2019-01-14
- 3.0.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-user-packages/index.d.ts)
````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](https://github.com/BendingBender).

---
_Source: https://npm.io/package/@types/npm-user-packages · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
