# @types/humanparser

> TypeScript definitions for humanparser

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

## Install

```sh
npm install @types/humanparser
pnpm add @types/humanparser
yarn add @types/humanparser
bun add @types/humanparser
```

## 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 | 1.1.8 |
| Published | 2023-11-07 |
| First published | 2016-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.8 (latest) — 2023-11-07
- 1.1.5 (ts4.3) — 2023-09-05
- 1.1.4 (ts4.0) — 2022-06-23
- 1.1.3 (ts3.9) — 2022-05-10
- 1.1.2 (ts3.6) — 2021-07-08
- 1.1.1 (ts2.0) — 2017-08-21
- 1.1.7 — 2023-10-18
- 1.1.6 — 2023-09-16
- 1.1.0 — 2016-11-15

## README

# Installation
> `npm install --save @types/humanparser`

# Summary
This package contains type definitions for humanparser (https://github.com/chovy/humanparser).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/humanparser.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/humanparser/index.d.ts)
````ts
declare namespace humanparser {
    interface NameOutput {
        firstName?: string | undefined;
        lastName: string;
        fullName: string;
        suffix?: string | undefined;
        middleName?: string | undefined;
        salutation?: string | undefined;
    }

    interface FullerNameOutput {
        fullName: string;
    }

    interface AddressOutput {
        address: string;
        state: string;
        fullAddress: string;
        zip: string;
        city: string;
    }

    interface ParseNameOptions {
        extraCompound?: string[];
        extraSalutations?: string[];
        extraSuffixes?: string[];
        ignoreCompound?: string[];
        ignoreSalutation?: string[];
        ignoreSuffix?: string[];
    }

    interface HumanparserStatic {
        parseName(name: string, options?: string[] | ParseNameOptions): NameOutput;
        getFullestName(name: string): FullerNameOutput;
        parseAddress(address: string): AddressOutput;
    }
}

declare const humanparser: humanparser.HumanparserStatic;
export = humanparser;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Michał Podeszwa](https://github.com/MichalPodeszwa).

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