# @types/npm-whoami

> TypeScript definitions for npm-whoami

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

## Install

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

## Health

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

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2023-11-07 |
| First published | 2023-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51419 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.2 (latest) — 2023-11-07
- 1.1.0 (ts4.3) — 2023-06-16
- 1.1.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/npm-whoami`

# Summary
This package contains type definitions for npm-whoami (https://github.com/jamestalmage/npm-whoami#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-whoami.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-whoami/index.d.ts)
````ts
export = whoami;

declare function whoami(callback: whoami.WhoamiCallback, opts?: whoami.WhoamiOptions): void;

declare namespace whoami {
    interface WhoamiCallback {
        (err: Error, username: undefined): void;
        (err: null, username: string): void;
    }

    type WhoamiOptions = number | string | BothOptions;

    interface BothOptions {
        registry?: string;
        timeout?: number;
    }

    function sync(opts: WhoamiOptions): string | undefined;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Josh Goldberg](https://github.com/JoshuaKGoldberg).

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