# @types/postlight__mercury-parser

> TypeScript definitions for @postlight/mercury-parser

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

## Install

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

## 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 | 2.2.7 |
| Published | 2023-11-07 |
| First published | 2019-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 2.2.7 (latest) — 2023-11-07
- 2.2.4 (ts3.6) — 2021-07-08
- 2.2.3 (ts3.2) — 2020-10-04
- 2.2.2 (ts2.7) — 2019-07-10
- 2.2.0 (ts2.2) — 2019-07-03
- 2.2.6 — 2023-10-18
- 2.2.5 — 2023-09-24
- 2.2.1 — 2019-07-09

## README

# Installation
> `npm install --save @types/postlight__mercury-parser`

# Summary
This package contains type definitions for @postlight/mercury-parser (https://github.com/postlight/mercury-parser).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postlight__mercury-parser.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postlight__mercury-parser/index.d.ts)
````ts
/// <reference types="node" />

export interface ParseResult {
    title: string | null;
    content: string | null;
    author: string | null;
    date_published: string | null;
    lead_image_url: string | null;
    dek: string | null;
    next_page_url: string | null;
    url: string;
    domain: string;
    excerpt: string | null;
    word_count: number;
    direction: "ltr" | "rtl";
    total_pages: number;
    rendered_pages: number;
}

export interface ParseOptions {
    contentType?: "html" | "markdown" | "text" | undefined;
    headers?: object | undefined;
    html?: string | Buffer | undefined;
}

export function parse(url: string, options?: ParseOptions): Promise<ParseResult>;
export function fetchResource(url: string): Promise<string>;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Malo Bourgon](https://github.com/malob).

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